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

Zookeeper stop fails if start called twice

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.2
    • 3.4.0
    • scripts
    • None
    • 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

        1. ZOOKEEPER-1061.patch
          2 kB
          Ted Dunning

        Activity

          People

            tdunning Ted Dunning
            tdunning Ted Dunning
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: