Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A6C34200AC7 for ; Mon, 2 May 2016 07:15:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A503E1609A1; Mon, 2 May 2016 07:15:14 +0200 (CEST) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1DBEB1602C1 for ; Mon, 2 May 2016 07:15:13 +0200 (CEST) Received: (qmail 22336 invoked by uid 500); 2 May 2016 05:15:13 -0000 Mailing-List: contact dev-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list dev@zookeeper.apache.org Received: (qmail 22323 invoked by uid 99); 2 May 2016 05:15:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 May 2016 05:15:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D841C2C0451 for ; Mon, 2 May 2016 05:15:12 +0000 (UTC) Date: Mon, 2 May 2016 05:15:12 +0000 (UTC) From: "Ed Rowe (JIRA)" To: dev@zookeeper.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (ZOOKEEPER-2420) Autopurge deletes log file prior to oldest retained snapshot even though restore may need it MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 02 May 2016 05:15:14 -0000 [ https://issues.apache.org/jira/browse/ZOOKEEPER-2420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ed Rowe updated ZOOKEEPER-2420: ------------------------------- Summary: Autopurge deletes log file prior to oldest retained snapshot even though restore may need it (was: Autopurge deletes log file prior to oldest retained snapshot even though restore would need it) > 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 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 this log file 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)