yx9o commented on code in PR #9955:
URL: https://github.com/apache/rocketmq/pull/9955#discussion_r4573683034


##########
tools/src/main/java/org/apache/rocketmq/tools/admin/DefaultMQAdminExtImpl.java:
##########
@@ -1091,18 +1126,32 @@ public TopicList queryTopicsByConsumer(
 
     @Override
     public AdminToolResult<TopicList> queryTopicsByConsumerConcurrent(final 
String group) {
+        return queryTopicsByConsumerConcurrent(null, group);
+    }
+
+    public AdminToolResult<TopicList> queryTopicsByConsumerConcurrent(final 
String clusterName, final String group) {
         return adminToolExecute(new AdminToolHandler() {
             @Override
             public AdminToolResult doExecute() throws Exception {
                 String retryTopic = MixAll.getRetryTopic(group);
                 TopicRouteData topicRouteData = 
examineTopicRouteInfo(retryTopic);
+                List<BrokerData> brokerDatas = null;
+                try {
+                    brokerDatas = 
examineTopicRouteInfo(retryTopic).getBrokerDatas();

Review Comment:
   If the retry topic doesn't exist, the lookup before this `try` throws before 
the consumer-group fallback can run. Could we remove that first lookup and keep 
only the one inside the `try`?



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