leizhiyuan commented on code in PR #7802:
URL: https://github.com/apache/rocketmq/pull/7802#discussion_r1470795493


##########
client/src/main/java/org/apache/rocketmq/client/impl/consumer/DefaultMQPullConsumerImpl.java:
##########
@@ -134,6 +129,51 @@ public Set<MessageQueue> 
fetchMessageQueuesInBalance(String topic) throws MQClie
         return parseSubscribeMessageQueues(mqResult);
     }
 
+    public Set<MessageQueue> fetchSubscribeMessageQueues(String topic, String 
subExpression) throws MQClientException, InterruptedException {
+        this.isRunning();
+        // check if has info in memory, otherwise invoke api.
+        Set<MessageQueue> result = 
this.rebalanceImpl.getTopicSubscribeInfoTable().get(topic);
+        if (null == result) {
+            result = 
this.mQClientFactory.getMQAdminImpl().fetchSubscribeMessageQueues(topic);
+        }
+
+        // 从namesvr更新路由信息

Review Comment:
   remove chinese comment



-- 
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: commits-unsubscr...@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to