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

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

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments


    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 3.4.8, 3.4.9, 3.4.10, 3.5.1, 3.5.2, 3.5.3
    • 3.4.11, 3.5.4, 3.6.0
    • quorum, server
    • None


      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


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

        Issue Links


          This comment will be Viewable by All Users Viewable by All Users


            arshad.mohammad Mohammad Arshad
            arshad.mohammad Mohammad Arshad
            12 Vote for this issue
            18 Start watching this issue




                Issue deployment