panzhi33 commented on a change in pull request #3174:
URL: https://github.com/apache/rocketmq/pull/3174#discussion_r676012231



##########
File path: broker/src/main/java/org/apache/rocketmq/broker/BrokerStartup.java
##########
@@ -187,6 +187,7 @@ public static BrokerController 
createBrokerController(String[] args) {
             JoranConfigurator configurator = new JoranConfigurator();
             configurator.setContext(lc);
             lc.reset();
+            System.setProperty("brokerLogDir", brokerConfig.getBrokerName() + 
"_" + brokerConfig.getBrokerId());

Review comment:
       i 
   
   > In dleger mode, The broker id changes when the leader change. so if we 
restart the leader you will see broker id change from zero to non-zero
   
   I think brokerport can be used




-- 
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]


Reply via email to