shirenchuang commented on code in PR #7162:
URL: https://github.com/apache/rocketmq/pull/7162#discussion_r1290114879


##########
tools/src/main/java/org/apache/rocketmq/tools/command/topic/UpdateTopicSubCommand.java:
##########
@@ -170,8 +170,12 @@ public void execute(final CommandLine commandLine, final 
Options options,
                 Set<String> masterSet =
                     
CommandUtil.fetchMasterAddrByClusterName(defaultMQAdminExt, clusterName);
                 for (String addr : masterSet) {
-                    defaultMQAdminExt.createAndUpdateTopicConfig(addr, 
topicConfig);
-                    System.out.printf("create topic to %s success.%n", addr);
+                    try {
+                        defaultMQAdminExt.createAndUpdateTopicConfig(addr, 
topicConfig);
+                        System.out.printf("create topic to %s success.%n", 
addr);
+                    }catch(Exception e){

Review Comment:
   done



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