ni-ze commented on issue #4154:
URL: https://github.com/apache/rocketmq/issues/4154#issuecomment-1097608746

   ```java
       int writeQueueNums = tpInfo.getQueueIdByBroker(notBestBroker);
      ...
       mq.setBrokerName(notBestBroker);
       mq.setQueueId(tpInfo.getSendWhichQueue().incrementAndGet() % 
writeQueueNums);
   ```
   a messageQueue's brokerName and queueId is consistent, because 
writeQueueNums is belong to the same brokerName, which is notBestBroker in this 
case. 
   
   


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