Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 45703 invoked from network); 11 Nov 2008 18:12:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Nov 2008 18:12:08 -0000 Received: (qmail 77955 invoked by uid 500); 11 Nov 2008 18:12:13 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 77913 invoked by uid 500); 11 Nov 2008 18:12:13 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 77904 invoked by uid 99); 11 Nov 2008 18:12:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Nov 2008 10:12:12 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Nov 2008 18:11:01 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4D556234C28D for ; Tue, 11 Nov 2008 10:11:44 -0800 (PST) Message-ID: <976199450.1226427104315.JavaMail.jira@brutus> Date: Tue, 11 Nov 2008 10:11:44 -0800 (PST) From: "Mark Harwood (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-1449) IndexDeletionPolicy.delete behaves incorrectly when deleting latest generation In-Reply-To: <722750021.1226415167932.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-1449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Harwood updated LUCENE-1449: --------------------------------- Attachment: TestTransactionRollbackCapability2.java Thanks for the pointers, Mike. This new test now passes having made a few changes. > IndexDeletionPolicy.delete behaves incorrectly when deleting latest generation > ------------------------------------------------------------------------------- > > Key: LUCENE-1449 > URL: https://issues.apache.org/jira/browse/LUCENE-1449 > Project: Lucene - Java > Issue Type: Bug > Components: Index > Affects Versions: 2.9 > Reporter: Mark Harwood > Assignee: Michael McCandless > Priority: Minor > Attachments: TestTransactionRollbackCapability.java, TestTransactionRollbackCapability2.java > > > I have been looking to provide the ability to rollback committed transactions and encountered some issues. > I appreciate IndexDeletionPolicy's main motivation is to handle cleaning away OLD commit points but it does not explicitly state that it can or cannot be used to clean NEW commit points. > If this is not supported then the documentation should ideally state this. If the intention is to support this behaviour then read on ....... > There seem to be 2 issues so far: > 1) The first attempt to call IndexCommit.delete on the latest commit point fails to remove any contents. The subsequent call succeeds however > 2) Deleting the latest commit point fails to update the segments.gen file to point to segments_N-1. New IndexReaders that are opened are then misdirected to open segments_N which has been deleted > Junit test to follow... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org