Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 44896 invoked from network); 13 Mar 2008 19:26:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Mar 2008 19:26:03 -0000 Received: (qmail 59646 invoked by uid 500); 13 Mar 2008 19:25:57 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 59597 invoked by uid 500); 13 Mar 2008 19:25:57 -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 59586 invoked by uid 99); 13 Mar 2008 19:25:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Mar 2008 12:25:57 -0700 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; Thu, 13 Mar 2008 19:25:17 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4DD72234C09A for ; Thu, 13 Mar 2008 12:24:24 -0700 (PDT) Message-ID: <1207070245.1205436264317.JavaMail.jira@brutus> Date: Thu, 13 Mar 2008 12:24:24 -0700 (PDT) From: "Doron Cohen (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-1228) IndexWriter.commit() does not update the index version In-Reply-To: <823255749.1205436025515.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-1228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Doron Cohen updated LUCENE-1228: -------------------------------- Attachment: lucene-1228-commit-reopen.patch Patch with a fix + a test that demonstrates the bug. All core tests pass. Will run all tests later on. > IndexWriter.commit() does not update the index version > ------------------------------------------------------- > > Key: LUCENE-1228 > URL: https://issues.apache.org/jira/browse/LUCENE-1228 > Project: Lucene - Java > Issue Type: Bug > Components: Index > Affects Versions: 2.3, 2.3.1, 2.4 > Reporter: Doron Cohen > Assignee: Doron Cohen > Attachments: lucene-1228-commit-reopen.patch > > > IndexWriter.commit() can update the index *version* and *generation* but the update of *version* is lost. > As result added documents are not seen by IndexReader.reopen(). > (There might be other side effects that I am not aware of). > The fix is 1 line - update also the version in SegmentsInfo.updateGeneration(). > (Finding this line involved more lines though... :-) ) -- 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