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

        Ted Dunning created issue -
        Ted Dunning made changes -
        Field Original Value New Value
        Assignee Ted Dunning [ tdunning ]
        Ted Dunning made changes -
        Attachment ZOOKEEPER-1061.patch [ 12478734 ]
        Ted Dunning made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Fix Version/s 3.4.0 [ 12314469 ]
        Mahadev konar made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags [Reviewed]
        Fix Version/s 3.3.3 [ 12315482 ]
        Resolution Fixed [ 1 ]
        Mahadev konar made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development