Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2006

Standalone mode won't take client port from dynamic config

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.5.0
    • 3.5.1, 3.6.0
    • server
    • None

    Description

      When clientPort is specified in the new format, using "server.x=host:port1:port2;clientPort" in either static or dynamic file and without a "clientPort = xxxx" statement, a standalone mode server doesn't set up client port.

      A second problem is that zkServer.sh looks for the client port in both static and dynamic files, but when looking in the static files it only looks for the "clientPort" statement, so if its specified in the new format the port will be missed and commands such as "zkServer.sh status" will not work. This is a problem for standalone mode, but also in distributed mode when the server is still LOOKING (once a leader is established and the server is LEADING/FOLLOWING/OBSERVING, a dynamic file is created and the client port will be found by the script).

      Review Board:
      https://reviews.apache.org/r/24786/

      Attachments

        1. draft
          2 kB
          Alexander Shraer
        2. ZOOKEEPER-2006.patch
          9 kB
          Hongchao Deng
        3. ZOOKEEPER-2006-v2.patch
          16 kB
          Hongchao Deng
        4. ZOOKEEPER-2006-v3.patch
          17 kB
          Hongchao Deng
        5. ZOOKEEPER-2006-v4.patch
          17 kB
          Hongchao Deng
        6. ZOOKEEPER-2006-v5.patch
          17 kB
          Hongchao Deng
        7. ZOOKEEPER-2006-v6.patch
          17 kB
          Hongchao Deng
        8. ZOOKEEPER-2006-v6.patch
          17 kB
          Alexander Shraer

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            hdeng Hongchao Deng
            hdeng Hongchao Deng
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment