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

   IMO, I think neither are good solution. Use retry topic just want to find 
the broker address. Maybe we can solution like this:
   ```java
   Collection<BrokerData> values = 
this.examineBrokerClusterInfo().getBrokerAddrTable().values();
           for (BrokerData value : values) {
               String addr = value.selectBrokerAddr();
               if (StringUtils.isNotBlank(addr)) {
                   ConsumerConnection result = 
this.mqClientInstance.getMQClientAPIImpl().getConsumerConnectionList(addr, 
consumerGroup, timeoutMillis);
                   if (result != null) {
                       return result;
                   }
               }
           }
   ```


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