You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2023/05/04 04:24:38 UTC

[GitHub] [rocketmq] PAYNE1Z added a comment to the discussion: 5.1 版本controller 无法自动切换: org.apache.rocketmq.client.exception.MQBrokerException: CODE: 2012 DESC: The broker has not master, and this new registered broker can't not be elected as master

GitHub user PAYNE1Z added a comment to the discussion: 5.1 版本controller 无法自动切换: org.apache.rocketmq.client.exception.MQBrokerException: CODE: 2012  DESC: The broker has not master, and this new registered broker can't not be elected as master

(1)下线主备Broker
(2)利用cleanBrokerData命令清除Controller中该组Broker元数据
(3)删除主备Broker下的文件~/store/epochFileCheckpoint和epochFileCheckpoint.bak
(4)Broker重新上线(尽量保证旧的主备关系,先主后备上线)

参考  #6354 这个操作恢复了
可能是因为我更改过 epochFileCheckpoint 目录 

GitHub link: https://github.com/apache/rocketmq/discussions/6685#discussioncomment-5800705

----
This is an automatically sent email for dev@rocketmq.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@rocketmq.apache.org