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

Ephemeral node is never deleted if follower fails while reading the proposal packet

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.4.8, 3.4.9, 3.4.10, 3.5.1, 3.5.2, 3.5.3
    • Fix Version/s: 3.4.11, 3.5.4, 3.6.0
    • Component/s: quorum, server
    • Labels:
      None

      Description

      ZooKeeper ephemeral node is never deleted if follower fail while reading the proposal packet
      The scenario is as follows:

      1. Configure three node ZooKeeper cluster, lets say nodes are A, B and C, start all, assume A is leader, B and C are follower
      2. Connect to any of the server and create ephemeral node /e1
      3. Close the session, ephemeral node /e1 will go for deletion
      4. While receiving delete proposal make Follower B to fail with SocketTimeoutException. This we need to do to reproduce the scenario otherwise in production environment it happens because of network fault.
      5. Remove the fault, just check that faulted Follower is now connected with quorum
      6. Connect to any of the server, create the same ephemeral node /e1, created is success.
      7. Close the session, ephemeral node /e1 will go for deletion
      8. /e1 is not deleted from the faulted Follower B, It should have been deleted as it was again created with another session
      9. /e1 is deleted from Leader A and other Follower C

        Attachments

        1. ZOOKEEPER-2355-01.patch
          13 kB
          Mohammad Arshad
        2. ZOOKEEPER-2355-02.patch
          14 kB
          Mohammad Arshad
        3. ZOOKEEPER-2355-03.patch
          14 kB
          Marshall McMullen
        4. ZOOKEEPER-2355-04.patch
          13 kB
          Mohammad Arshad
        5. ZOOKEEPER-2355-05.patch
          15 kB
          Mohammad Arshad

          Issue Links

            Activity

              People

              • Assignee:
                arshad.mohammad Mohammad Arshad
                Reporter:
                arshad.mohammad Mohammad Arshad
              • Votes:
                12 Vote for this issue
                Watchers:
                21 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: