[
https://issues.apache.org/jira/browse/ROCKETMQ-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16119839#comment-16119839
]
ASF GitHub Bot commented on ROCKETMQ-257:
-----------------------------------------
GitHub user qqeasonchen opened a pull request:
https://github.com/apache/incubator-rocketmq/pull/144
[ROCKETMQ-257] name server address and web server address should be s…
…pecified at least one
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/qqeasonchen/incubator-rocketmq develop
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-rocketmq/pull/144.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #144
----
commit db7d37e4fdd1729ebfaf4c000a578675847cd94c
Author: easoncchen <[email protected]>
Date: 2017-08-09T12:48:52Z
[ROCKETMQ-257] name server address and web server address should be
specified at least one
----
> name server address and web server address should be specified at least one
> ---------------------------------------------------------------------------
>
> Key: ROCKETMQ-257
> URL: https://issues.apache.org/jira/browse/ROCKETMQ-257
> Project: Apache RocketMQ
> Issue Type: Bug
> Components: rocketmq-client
> Affects Versions: 4.1.0-incubating
> Environment: test and production
> Reporter: Eason Chen
> Assignee: Xiaorui Wang
> Priority: Minor
> Fix For: 4.2.0-incubating
>
>
> 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.
> {code:java}
> // 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();
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)