apache / rocketmq

Apache RocketMQ is a cloud native messaging and streaming platform, making it simple to build event-driven applications.

Home Page:https://rocketmq.apache.org/

Repository from Github https://github.comapache/rocketmqRepository from Github https://github.comapache/rocketmq

[Bug] Bug title

fujian-zfj opened this issue · comments

Before Creating the Bug Report

  • I found a bug, not just asking a question, which should be created in GitHub Discussions.

  • I have searched the GitHub Issues and GitHub Discussions of this repository and believe that this is not a duplicate.

  • I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.

Runtime platform environment

All platform

RocketMQ version

latest

JDK Version

all

Describe the Bug

In rocksdb and HA mode, slave try to sync topics and subscription, but slave do not write these meta to WAL, it may cause loss of topics and subcription after slave is elected to master.

Steps to Reproduce

when I try to enable rocksdb and HA mode,
1.broker1 was elected as master, broker2 was elected as slave.
2.some topics and subscriptions were created to broker1.
3.For some reason, broker2 was elected as master, then broker1 and broker2 are all down, after broker1 restarted, we can not get topics or subscription in master broker1.

What Did You Expect to See?

those topic and subscription should be in new master broker1 after it restarts.

What Did You See Instead?

no topic and subscription found in new master broker1 after it restarts.

Additional Context

No response