You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Ajith S (JIRA)" <ji...@apache.org> on 2016/02/04 13:17:39 UTC

[jira] [Commented] (ZOOKEEPER-2132) Follower::syncWithLeader should roll logs before taking snapshot

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-2132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15132232#comment-15132232 ] 

Ajith S commented on ZOOKEEPER-2132:
------------------------------------

I would like to work on this. Please assign to me

> Follower::syncWithLeader should roll logs before taking snapshot
> ----------------------------------------------------------------
>
>                 Key: ZOOKEEPER-2132
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2132
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 3.4.6
>            Reporter: Asad Saeed
>
> If multiple leader elections occur before SyncRequestProcessor takes a snapshot and rolls logs (at least 50000 transactions by default). PurgeTxnLog may inadvertently delete the current transaction log file.
> Follower::syncWithLeader currently takes a snapshot after it is synced with the leader but does not roll logs. If a zookeeper restart of a quorum of nodes occurs, the cluster may silently revert back to the last snapshot, loosing all transactions in the log!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)