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

Zookeeper stop fails if start called twice

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3.2
    • Fix Version/s: 3.4.0
    • Component/s: scripts
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The zkServer.sh script doesn't check properly to see if a previously started
      server is still running. If you call start twice, the second invocation
      will over-write the PID file with a process that then fails due to port
      occupancy.

      This means that stop will subsequently fail.

      Here is a reference that describes how init scripts should normally work:

      http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html

        Attachments

          Activity

            People

            • Assignee:
              tdunning Ted Dunning
              Reporter:
              tdunning Ted Dunning
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: