RongtongJin opened a new issue, #6926: URL: https://github.com/apache/rocketmq/issues/6926
### Before Creating the Bug Report - [X] I found a bug, not just asking a question, which should be created in [GitHub Discussions](https://github.com/apache/rocketmq/discussions). - [X] I have searched the [GitHub Issues](https://github.com/apache/rocketmq/issues) and [GitHub Discussions](https://github.com/apache/rocketmq/discussions) of this repository and believe that this is not a duplicate. - [X] I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ. ### Runtime platform environment All platforms ### RocketMQ version 5.1.2 ### JDK Version All versions ### Describe the Bug Fail to start broker in controller mode in 5.1.2  ### Steps to Reproduce Start broker in controller mode ### What Did You Expect to See? Start normally ### What Did You See Instead? Fail to start and report NPE ### Additional Context Due to the merging of other pull requests, the initialization order of the replicaManager was adjusted, which caused the automatic master-slave switching mode to malfunction in version 5.1.2. So **Do not upgrade to Apache RocketMQ 5.1.2 for broker if you use automatic master-slave switching mode**. We will release Apache RocketMQ 5.1.3 ASAP. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
