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

Zookeeper will not sync snapshot while get DIFF and cause start failed.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 3.5.1, 3.5.6
    • None
    • server

    Description

      The  version 3.5.1 of ZK does not detect whether the snapshot file exists or not. However, the snapshot file detection is added in the subsequent version. When I tested the upgrade from 3.5.1 to 3.5.6, I found that after the completion of ZK election, One of the ZK node has an error in the following phase due to some network reasons, and then it will receive a diff reply. At this time,  both snapshotNeeded and isPreZAB1_0 (   Learner#syncWithLeader(long newLeaderZxid)  )are assigned to false.  So, none of snapshot file will be generated but a log file, which will cause the startup failure after the upgrade. 

       

       

       

      Attachments

        1. zookeeper-server.log
          4 kB
          doupengwei

        Issue Links

          Activity

            People

              Unassigned Unassigned
              DouDou doupengwei
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m