maixiaohai commented on a change in pull request #2167:
URL: https://github.com/apache/rocketmq/pull/2167#discussion_r504363042
##########
File path:
client/src/main/java/org/apache/rocketmq/client/impl/factory/MQClientInstance.java
##########
@@ -1043,6 +1043,11 @@ public FindBrokerResult findBrokerAddressInSubscribe(
slave = brokerId != MixAll.MASTER_ID;
found = brokerAddr != null;
+ if (!found && slave) {
+ brokerAddr = map.get(brokerId + 1);
Review comment:
The broker id will change as dledger role change.
If it happended to be the temporary state, the request will return error
code, and client will refresh addr tables
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]