[
https://issues.apache.org/jira/browse/ZOOKEEPER-1797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13799466#comment-13799466
]
Flavio Junqueira commented on ZOOKEEPER-1797:
---------------------------------------------
Thanks for reporting this issue, Derek. This happens only if you are using
autopurge, yes?
> PurgeTxnLog may delete data logs during roll
> --------------------------------------------
>
> Key: ZOOKEEPER-1797
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1797
> Project: ZooKeeper
> Issue Type: Bug
> Affects Versions: 3.4.5
> Reporter: Derek Dagit
>
> org.apache.zookeeper.server.PurgeTxnLog deletes old data logs and snapshots,
> keeping the newest N snapshots and any data logs that have been written since
> the snapshot.
> It does this by listing the available snapshots & logs and creates a
> blacklist of snapshots and logs that should not be deleted. Then, it
> searches for and deletes all logs and snapshots that are not in this list.
> It appears that if logs are rolling or a new snapshot is created during this
> process, then these newer files will be unintentionally deleted.
--
This message was sent by Atlassian JIRA
(v6.1#6144)