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

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.1.0-incubating
    • Fix Version/s: 4.2.0
    • Component/s: rocketmq-client
    • Labels:
      None
    • Environment:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: