zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nkalmar <...@git.apache.org>
Subject [GitHub] zookeeper issue #487: ZOOKEEPER-2994 Tool required to recover log and snapsh...
Date Wed, 18 Apr 2018 13:33:19 GMT
Github user nkalmar commented on the issue:

    https://github.com/apache/zookeeper/pull/487
  
    I used your updated documentation, and managed to recover a corrupted log file:
    
    bin/zkTxnLogToolkit.sh -d ~/workspace/zookeeper/standalone/version-2/log.1
    ZooKeeper Transactional Log File with dbid 0 txnlog format version 2
    4/9/18 3:13:19 PM CEST session 0x10000ebe13a0000 cxid 0x0 zxid 0x1 createSession 30000
    4/9/18 3:15:21 PM CEST session 0x10000ebe13a0000 cxid 0x0 zxid 0x2 closeSession null
    4/9/18 3:17:41 PM CEST session 0x10000ebe13a0001 cxid 0x0 zxid 0x3 createSession 30000
    4/9/18 3:18:13 PM CEST session 0x10000ebe13a0001 cxid 0x0 zxid 0x4 closeSession null
    EOF reached after 4 txns.
    
    Corrupted log.1 file
    
    bin/zkTxnLogToolkit.sh -d ~/workspace/zookeeper/standalone/version-2/log.1
    ZooKeeper Transactional Log File with dbid 0 txnlog format version 2
    CRC ERROR - 4/10/18 5:12:11 AM CEST session 0x10000ebe13a0000 cxid 0x0 zxid 0x1 createSession
30000
    4/10/18 5:12:11 AM CEST session 0x10000ebe13a0000 cxid 0x0 zxid 0x1 createSession 30000
    4/9/18 3:15:21 PM CEST session 0x10000ebe13a0000 cxid 0x0 zxid 0x2 closeSession null
    CRC ERROR - 4/9/18 3:17:41 PM CEST session 0x10044aa44aaaaaa cxid 0x0 zxid 0x3 createSession
30000
    4/9/18 3:17:41 PM CEST session 0x10044aa44aaaaaa cxid 0x0 zxid 0x3 createSession 30000
    4/9/18 3:18:13 PM CEST session 0x10000ebe13a0001 cxid 0x0 zxid 0x4 closeSession null
    EOF reached after 4 txns.
    
    bin/zkTxnLogToolkit.sh -r ~/workspace/zookeeper/standalone/version-2/log.1
    ZooKeeper Transactional Log File with dbid 0 txnlog format version 2
    CRC ERROR - 4/10/18 5:12:11 AM CEST session 0x10000ebe13a0000 cxid 0x0 zxid 0x1 createSession
30000
    Would you like to fix it (Yes/No/Abort) ? Y
    EOF reached after 4 txns.
    Recovery file /Users/norbertkalmar/workspace/zookeeper/standalone/version-2/log.1.fixed
has been written with 1 fixed CRC error(s)
    
    bin/zkTxnLogToolkit.sh -d ~/workspace/zookeeper/standalone/version-2/log.1.fixed
    ZooKeeper Transactional Log File with dbid 0 txnlog format version 2
    4/9/18 3:13:19 PM CEST session 0x10000ebe13a0000 cxid 0x0 zxid 0x1 createSession 30000
    4/9/18 3:15:21 PM CEST session 0x10000ebe13a0000 cxid 0x0 zxid 0x2 closeSession null
    4/9/18 3:17:41 PM CEST session 0x10044aa44aaaaaa cxid 0x0 zxid 0x3 createSession 30000
    4/9/18 3:18:13 PM CEST session 0x10000ebe13a0001 cxid 0x0 zxid 0x4 closeSession null
    EOF reached after 4 txns.
    
    
    LGTM!


---

Mime
View raw message