zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ed Rowe (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ZOOKEEPER-2420) Autopurge deletes log file prior to oldest retained snapshot even though restore may need it
Date Tue, 03 May 2016 07:35:12 GMT

     [ https://issues.apache.org/jira/browse/ZOOKEEPER-2420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ed Rowe updated ZOOKEEPER-2420:
-------------------------------
    Description: Autopurge retains all log files whose zxid are >= the zxid of the oldest
snapshot file that it is going to retain (in PurgeTxnLog retainNRecentSnapshots()). Given
that loading the database from snapshots/logs will start with the log file _prior_ to the
snapshot's zxid, autopurge should retain the log file prior to the oldest retained snapshot
as well, unless it verifies that it contains no zxids beyond what the snapshot contains. 
 (was: Autopurge retains all log files whose zxid are >= the zxid of the oldest log file
that it is going to retain (in PurgeTxnLog retainNRecentSnapshots()). Given that loading the
database from snapshots/logs will start with the log file _prior_ to the snapshot's zxid,
autopurge should retain the log file prior to the first snapshot as well unless it verifies
that it contains no zxids beyond what the snapshot contains. )

> Autopurge deletes log file prior to oldest retained snapshot even though restore may
need it
> --------------------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-2420
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2420
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: server
>            Reporter: Ed Rowe
>
> Autopurge retains all log files whose zxid are >= the zxid of the oldest snapshot
file that it is going to retain (in PurgeTxnLog retainNRecentSnapshots()). Given that loading
the database from snapshots/logs will start with the log file _prior_ to the snapshot's zxid,
autopurge should retain the log file prior to the oldest retained snapshot as well, unless
it verifies that it contains no zxids beyond what the snapshot contains. 



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

Mime
View raw message