ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-1061

Zookeeper stop fails if start called twice

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development