jack870131 commented on a change in pull request #2169:
URL: https://github.com/apache/rocketmq/pull/2169#discussion_r459441258



##########
File path: 
client/src/main/java/org/apache/rocketmq/client/impl/factory/MQClientInstance.java
##########
@@ -1161,6 +1161,26 @@ public void resetOffset(String topic, String group, 
Map<MessageQueue, Long> offs
         }
     }
 
+    public List<MessageQueue> getAllocationResult(final String topic, final 
String group, final String strategyName,
+        final List<MessageQueue> mqAll, final List<String> cidAll) {
+        String brokerAddr = this.findBrokerAddrByTopic(topic);
+        if (null == brokerAddr) {
+            this.updateTopicRouteInfoFromNameServer(topic);
+            brokerAddr = this.findBrokerAddrByTopic(topic);
+        }
+
+        if (null != brokerAddr) {
+            try {
+                return 
this.mQClientAPIImpl.getAllocationResultByStrategy(brokerAddr, group, clientId, 
strategyName,
+                    mqAll, cidAll, 3000);
+            } catch (Exception e) {
+                log.warn("getAllocationResultByStrategy exception, " + 
brokerAddr, " " + group, e);

Review comment:
       Updated.




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


Reply via email to