[
https://issues.apache.org/jira/browse/ZOOKEEPER-1813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13823384#comment-13823384
]
Vinay commented on ZOOKEEPER-1813:
----------------------------------
Yes I agree that this is issue is same as ZOOKEEPER-1573.
bq. Anyway the work around is to actually remove snapshot and txnlog for a
given server.
This is Ok. but in production cluster, it would be better to avoid this
situation.
As you told removing the check only can solve the issue.
> Zookeeper restart fails due to missing node from snapshot
> ---------------------------------------------------------
>
> Key: ZOOKEEPER-1813
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1813
> Project: ZooKeeper
> Issue Type: Bug
> Affects Versions: 3.4.5, 3.5.0
> Reporter: Vinay
> Priority: Blocker
> Attachments: ZOOKEEPER-1813-test.patch
>
>
> Due to following exception Zookeeper restart is failing
> {noformat}java.io.IOException: Failed to process transaction type: 1 error:
> KeeperErrorCode = NoNode for /test/subdir2/subdir2/subdir
> at
> org.apache.zookeeper.server.persistence.FileTxnSnapLog.restore(FileTxnSnapLog.java:183)
> at
> org.apache.zookeeper.server.ZKDatabase.loadDataBase(ZKDatabase.java:222)
> at
> org.apache.zookeeper.server.ZooKeeperServer.loadData(ZooKeeperServer.java:255)
> at
> org.apache.zookeeper.server.ZooKeeperServer.startdata(ZooKeeperServer.java:380)
> at
> org.apache.zookeeper.server.NIOServerCnxnFactory.startup(NIOServerCnxnFactory.java:748)
> at
> org.apache.zookeeper.server.ZooKeeperServerMain.runFromConfig(ZooKeeperServerMain.java:111)
> at
> org.apache.zookeeper.server.ZooKeeperServerMain.initializeAndRun(ZooKeeperServerMain.java:90)
> at
> org.apache.zookeeper.server.ZooKeeperServerMainTest$2.run(ZooKeeperServerMainTest.java:218)
> Caused by: org.apache.zookeeper.KeeperException$NoNodeException:
> KeeperErrorCode = NoNode for /test/subdir2/subdir2/subdir
> at
> org.apache.zookeeper.server.persistence.FileTxnSnapLog.processTransaction(FileTxnSnapLog.java:268)
> at
> org.apache.zookeeper.server.persistence.FileTxnSnapLog.restore(FileTxnSnapLog.java:181)
> ... 7 more{noformat}
--
This message was sent by Atlassian JIRA
(v6.1#6144)