Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
4.1.0-incubating
-
None
-
test and production
Description
if name server address and web server address both are not specified , client will not fetch the
right name server and client will start fail, because the default wsAddr=http://jmenv.tbsite.net:8080/rocketmq/nsaddr is not reachable.
// name server address and web server address should be specified at least one if (null == this.clientConfig.getNamesrvAddr() && MixAll.getWSAddr().equals(MixAll.WS_ADDR)) { throw new MQClientException("name server address and web server address should be specified at least one.", null); } else if (null == this.clientConfig.getNamesrvAddr()) { this.mQClientAPIImpl.fetchNameServerAddr(); }
Attachments
Issue Links
- links to