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

Fails to load database with missing snapshot file but valid transaction log file

    XMLWordPrintableJSON

Details

    Description

      An issue was reported when a user failed to upgrade from 3.4.10 to 3.5.4 with missing snapshot file.

      The code complains about missing snapshot file is here which is introduced as part of ZOOKEEPER-2325.

      With this check, ZK will not load the db without a snapshot file, even the transaction log files are present and valid. This could be a problem for restoring a ZK instance which does not have a snapshot file but have a sound state (e.g. it crashes before being able to take the first snap shot with a large snapCount parameter configured).

       

      how to use this fix

      Add zookeeper.snapshot.trust.empty=true to your server configuration file and start the server.

      This property will skip the check.

      It is recommended to remove the property once you have a working server, because that check is important to ensure that the system is in good shape

      Attachments

        1. snapshot.0
          0.4 kB
          Brian Nixon

        Issue Links

          Activity

            People

              hanm Michael Han
              hanm Michael Han
              Votes:
              1 Vote for this issue
              Watchers:
              19 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 - 5h 50m
                  5h 50m