juhuan commented on code in PR #8778: URL: https://github.com/apache/rocketmq/pull/8778#discussion_r1847680966
########## client/src/main/java/org/apache/rocketmq/client/impl/factory/MQClientInstance.java: ########## @@ -839,8 +839,8 @@ public boolean updateTopicRouteInfoFromNameServer(final String topic, boolean is log.warn("updateTopicRouteInfoFromNameServer Exception", e); } } catch (RemotingException e) { - log.error("updateTopicRouteInfoFromNameServer Exception", e); - throw new IllegalStateException(e); + log.error("updateTopicRouteInfoFromNameServer Exception, namesrvAddr: " + clientConfig.getNamesrvAddr(), e); Review Comment: This errorMessage string is always being constructed. How about if I change it to the following code? ```java String errorMessage = String.format("updateTopicRouteInfoFromNameServer Exception, namesrvAddr: %s", clientConfig.getNamesrvAddr()); log.error(errorMessage, e); throw new IllegalStateException(errorMessage, e); ``` -- 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