zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abhishekrai <...@git.apache.org>
Subject [GitHub] zookeeper pull request #439: ZOOKEEPER-1621: Delete and skip txn log with in...
Date Fri, 29 Dec 2017 19:11:55 GMT
GitHub user abhishekrai opened a pull request:

    https://github.com/apache/zookeeper/pull/439

    ZOOKEEPER-1621: Delete and skip txn log with incomplete header

    Based on the patch by Michi Mutsuzaki.
    
    When Zookeeper server encounters a txn log with incomplete header,
    the old behavior was to crash due to the resulting EOFException.
    The new behavior is catch the exception and skip the txn log.
    
    Additionally, the txn log is deleted to ensure that it does not
    influence future loads/PurgeTxnLog in believing that this is
    the only txn log before the following snapshot that they need to
    load/retain.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/abhishekrai/zookeeper ZOOKEEPER-1621

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/zookeeper/pull/439.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #439
    
----
commit 6b457a069ccdb01e1ee77537b02db80f3005f5b1
Author: Abhishek Rai <abhishekrai@...>
Date:   2017-12-29T17:38:52Z

    ZOOKEEPER-1621: Delete and skip txn log with incomplete header
    
    Based on the patch by Michi Mutsuzaki.
    
    When Zookeeper server encounters a txn log with incomplete header,
    the old behavior was to crash due to the resulting EOFException.
    The new behavior is catch the exception and skip the txn log.
    
    Additionally, the txn log is deleted to ensure that it does not
    influence future loads/PurgeTxnLog in believing that this is
    the only txn log before the following snapshot that they need to
    load/retain.

----


---

Mime
View raw message