[
https://issues.apache.org/jira/browse/ZOOKEEPER-1797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14003087#comment-14003087
]
Hudson commented on ZOOKEEPER-1797:
-----------------------------------
FAILURE: Integrated in ZooKeeper-trunk #2311 (See
[https://builds.apache.org/job/ZooKeeper-trunk/2311/])
ZOOKEEPER-1797. PurgeTxnLog may delete data logs during roll (Rakesh R via
michim) (michim:
http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1595552)
* /zookeeper/trunk/CHANGES.txt
* /zookeeper/trunk/src/java/main/org/apache/zookeeper/server/PurgeTxnLog.java
* /zookeeper/trunk/src/java/test/org/apache/zookeeper/server/PurgeTxnTest.java
* /zookeeper/trunk/src/java/test/org/apache/zookeeper/test/PurgeTxnTest.java
> PurgeTxnLog may delete data logs during roll
> --------------------------------------------
>
> Key: ZOOKEEPER-1797
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1797
> Project: ZooKeeper
> Issue Type: Bug
> Components: server
> Affects Versions: 3.4.5
> Reporter: Derek Dagit
> Assignee: Rakesh R
> Priority: Blocker
> Fix For: 3.4.7, 3.5.0
>
> Attachments: ZOOKEEPER-1797.patch, ZOOKEEPER-1797.patch,
> ZOOKEEPER-1797.patch, ZOOKEEPER-1797.patch
>
>
> 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.2#6252)