Issue has been fixed by copying empty snapshot file to data dir .

Thanks .

On 9/2/20, 10:51 PM, "Enrico Olivelli" <[email protected]> wrote:

    [External]


    The official way to fix it is here
    
https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fissues.apache.org%2Fjira%2Fbrowse%2FZOOKEEPER-3056&amp;data=02%7C01%7CManoj.Agrawal2%40cognizant.com%7C4620b7fb3801455d8a8808d84fcd6318%7Cde08c40719b9427d9fe8edf254300ca7%7C0%7C0%7C637347090841081188&amp;sdata=ymbjZLn8teCdxSQVQGD084lFd6HKxOAW3b9F%2BLPMn%2BM%3D&amp;reserved=0

    Basically we have a flag to allow the boot even in that case.
    I suggest you to upgrade to latest 3.5.8 and not to 3.5.7


    Enrico

    Il Gio 3 Set 2020, 03:51 Rijo Roy <[email protected]> ha scritto:

    > Hi Manoj,
    > I just faced it yesterday and resolved..
    > Hope you are getting this error in one of the follower node, if yesPlease
    > create a backup folder in your zookeeper data directory and move version_2
    > that holds zookeeper data into the newly created backup folder.
    > Starting the zookeeper process will sync create the version_2 folder into
    > its data directory.
    > Regards,Rijo Roy
    > Sent from Yahoo Mail on Android
    >
    >   On Thu, 3 Sep 2020 at 2:57 am, [email protected]<
    > [email protected]> wrote:   HI ALL ,
    > I’m planning to upgrade the Kafka 2.2.1 to kafka 2.5.0 , I m getting below
    > error while upgrading zookeeper version as below . Any idea ?
    >
    >
    >
    >
    >
    > java.io.IOException: No snapshot found, but there are log entries.
    > Something is broken!
    >
    >       at
    > 
org.apache.zookeeper.server.persistence.FileTxnSnapLog.restore(FileTxnSnapLog.java:240)
    >
    >       at
    > org.apache.zookeeper.server.ZKDatabase.loadDataBase(ZKDatabase.java:240)
    >
    >       at
    > 
org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:901)
    >
    >       at
    > org.apache.zookeeper.server.quorum.QuorumPeer.start(QuorumPeer.java:887)
    >
    >       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)
    >
    > 2020-09-02 21:19:23,877 - ERROR [main:QuorumPeerMain@101] - Unexpected
    > exception, exiting abnormally
    >
    > java.lang.RuntimeException: Unable to run quorum server
    >
    >       at
    > 
org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:938)
    >
    >       at
    > org.apache.zookeeper.server.quorum.QuorumPeer.start(QuorumPeer.java:887)
    >
    >       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)
    >
    > Caused by: java.io.IOException: No snapshot found, but there are log
    > entries. Something is broken!
    >
    >       at
    > 
org.apache.zookeeper.server.persistence.FileTxnSnapLog.restore(FileTxnSnapLog.java:240)
    >
    >       at
    > org.apache.zookeeper.server.ZKDatabase.loadDataBase(ZKDatabase.java:240)
    >
    >       at
    > 
org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:901)
    >
    >       ... 4 more
    >
    > This e-mail and any files transmitted with it are for the sole use of the
    > intended recipient(s) and may contain confidential and privileged
    > information. If you are not the intended recipient(s), please reply to the
    > sender and destroy all copies of the original message. Any unauthorized
    > review, use, disclosure, dissemination, forwarding, printing or copying of
    > this email, and/or any action taken in reliance on the contents of this
    > e-mail is strictly prohibited and may be unlawful. Where permitted by
    > applicable law, this e-mail and other e-mail communications sent to and
    > from Cognizant e-mail addresses may be monitored. This e-mail and any 
files
    > transmitted with it are for the sole use of the intended recipient(s) and
    > may contain confidential and privileged information. If you are not the
    > intended recipient(s), please reply to the sender and destroy all copies 
of
    > the original message. Any unauthorized review, use, disclosure,
    > dissemination, forwarding, printing or copying of this email, and/or any
    > action taken in reliance on the contents of this e-mail is strictly
    > prohibited and may be unlawful. Where permitted by applicable law, this
    > e-mail and other e-mail communications sent to and from Cognizant e-mail
    > addresses may be monitored.
    >
    >


This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted by applicable law, this e-mail 
and other e-mail communications sent to and from Cognizant e-mail addresses may 
be monitored.
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted by applicable law, this e-mail 
and other e-mail communications sent to and from Cognizant e-mail addresses may 
be monitored.

Reply via email to