You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/06/30 01:06:50 UTC
[GitHub] [rocketmq] RongtongJin commented on a diff in pull request #4502: [ISSUE #4501] fix Namesrv auto discovery not work
RongtongJin commented on code in PR #4502:
URL: https://github.com/apache/rocketmq/pull/4502#discussion_r910521510
##########
client/src/main/java/org/apache/rocketmq/client/impl/MQClientAPIImpl.java:
##########
@@ -227,7 +227,7 @@ public RemotingClient getRemotingClient() {
public String fetchNameServerAddr() {
try {
String addrs = this.topAddressing.fetchNSAddr();
- if (addrs != null) {
+ if (addrs != null && !UtilAll.isBlank(addrs)) {
Review Comment:
It would be better to combine one with the following if.
##########
broker/src/main/java/org/apache/rocketmq/broker/out/BrokerOuterAPI.java:
##########
@@ -86,7 +86,7 @@ public void shutdown() {
public String fetchNameServerAddr() {
try {
String addrs = this.topAddressing.fetchNSAddr();
- if (addrs != null) {
+ if (addrs != null && !UtilAll.isBlank(addrs)) {
Review Comment:
It would be better to combine one with the following if.
--
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: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org