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

Zookeeper refuses request after node expansion

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.6.1, 3.5.8
    • Fix Version/s: 3.7.0, 3.6.2, 3.5.9
    • Component/s: server
    • Labels:
      None

      Description

      It's easy to reproduce this bug.

      //代码占位符
       
      Step 1. Deploy 3 nodes  A,B,C with configuration A,B,C .
      Step 2. Deploy node ` D` with configuration  `A,B,C,D` , cluster state is ok now.
      Step 3. Restart nodes A,B,C with configuration A,B,C,D, then the leader will be D, cluster hangs, but it can accept `mntr` command, other command like `ls /` will be blocked.
      
      Step 4. Restart nodes D, cluster state is back to normal now.
       
      

       

      We have looked into the code of 3.5.6 version, and we found it may be the issue of  `workerPool` .

      The `CommitProcessor` shutdown and make `workerPool` shutdown, but `workerPool` still exists. It will never work anymore, yet the cluster still thinks it's ok.

       

      I think the bug may still exist in master branch.

      We have tested it in our machines by reset the `workerPool` to null. If it's ok, please assign this issue to me, and then I'll create a PR. 

       

       

       

        Attachments

        1. screenshot-1.png
          852 kB
          benwang li
        2. d.log
          59 kB
          benwang li

          Issue Links

            Activity

              People

              • Assignee:
                symat Mate Szalay-Beko
                Reporter:
                sundyli benwang li
              • Votes:
                1 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 5.5h
                  5.5h