RongtongJin commented on code in PR #6663:
URL: https://github.com/apache/rocketmq/pull/6663#discussion_r1179001664
##########
broker/src/main/java/org/apache/rocketmq/broker/controller/ReplicasManager.java:
##########
@@ -268,6 +268,7 @@ public void changeToMaster(final int newMasterEpoch, final
int syncStateSetEpoch
// Notify ha service, change to master
this.haService.changeToMaster(newMasterEpoch);
+ this.haService.setBrokerControllerId(this.brokerControllerId);
Review Comment:
After registration is completed, the brokerControllerId is determined, and
there is no need to set it every time the master is switched.
--
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]