[ https://issues.apache.org/jira/browse/ZOOKEEPER-3056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16974835#comment-16974835 ]
Anton commented on ZOOKEEPER-3056: ---------------------------------- Faced the same issue when upgrade from 3.4.9 to 3.5.6 {noformat} 2019-11-15 06:04:18,455 [main] ERROR QuorumPeer.java (line 955) Unable to load database on disk java.io.IOException: No snapshot found, but there are log entries. Something is broken! at org.apache.zookeeper.server.persistence.FileTxnSnapLog.restore(FileTxnSnapLog.java:222) at org.apache.zookeeper.server.ZKDatabase.loadDataBase(ZKDatabase.java:240) at org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:919) at org.apache.zookeeper.server.quorum.QuorumPeer.start(QuorumPeer.java:905) at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:205) at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:123) at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:82) 2019-11-15 06:04:18,462 [main] ERROR QuorumPeerMain.java (line 101) Unexpected exception, exiting abnormally {noformat} > Fails to load database with missing snapshot file but valid transaction log > file > -------------------------------------------------------------------------------- > > Key: ZOOKEEPER-3056 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3056 > Project: ZooKeeper > Issue Type: Bug > Components: server > Affects Versions: 3.5.3, 3.5.4 > Reporter: Michael Han > Assignee: Michael Han > Priority: Critical > Labels: pull-request-available > Fix For: 3.6.0, 3.5.6 > > Attachments: snapshot.0 > > Time Spent: 5h 10m > Remaining Estimate: 0h > > [An > issue|https://lists.apache.org/thread.html/cc17af6ef05d42318f74148f1a704f16934d1253f1472cccc1a93b4b@%3Cdev.zookeeper.apache.org%3E] > 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|https://github.com/apache/zookeeper/blob/release-3.5.4/src/java/main/org/apache/zookeeper/server/persistence/FileTxnSnapLog.java#L206] > 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). -- This message was sent by Atlassian Jira (v8.3.4#803005)