Uploaded image for project: 'Apache RocketMQ'
  1. Apache RocketMQ
  2. ROCKETMQ-257

name server address and web server address should be specified at least one

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.1.0-incubating
    • 4.2.0
    • rocketmq-client
    • 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

          Activity

            People

              vintagewang Xiaorui Wang
              easonchen Eason Chen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: