Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
3.5.3, 3.5.4
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
Attachments
Issue Links
- is related to
-
ZOOKEEPER-3644 Data loss after upgrading standalone ZK server 3.4.14 to 3.5.6 with snapshot.trust.empty=true
- Closed
- is required by
-
ZOOKEEPER-2325 Data inconsistency if all snapshots empty or missing
- Resolved
-
ZOOKEEPER-3513 Zookeeper upgrade fails due to missing snapshots
- Resolved
- relates to
-
ZOOKEEPER-4005 Zookeeper will not sync snapshot while get DIFF and cause start failed.
- Patch Available
- links to