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

zkServer.sh is looking for clientPort in config file, but it may no longer be there with ZK-1411

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.5.0
    • 3.5.0
    • scripts
    • None

    Description

      zkServer.sh is currently looking for "clientPort" entry in the static configuration file and uses it to contact the server.

      With ZOOKEEPER-1411 clientPort is part of the dynamic configuration, and may appear in the separate dynamic configuration file. The "clientPort" entry may no longer be in the static config file.

      With the proposed patch zkServer.sh first looks in the old (static) config file, then if clientPort is not there, it figures out the id of the server by looking at myid file, and then using that id finds the client port in the dynamic config file.

      Attachments

        1. ZOOKEEPER-1625.patch
          1 kB
          Alexander Shraer

        Issue Links

          Activity

            People

              shralex Alexander Shraer
              shralex Alexander Shraer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: