Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 56233 invoked from network); 1 Jun 2010 09:17:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Jun 2010 09:17:05 -0000 Received: (qmail 21429 invoked by uid 500); 1 Jun 2010 09:17:04 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 21017 invoked by uid 500); 1 Jun 2010 09:17:02 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 21010 invoked by uid 99); 1 Jun 2010 09:17:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jun 2010 09:17:01 +0000 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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jun 2010 09:16:59 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o519Gbj2015955 for ; Tue, 1 Jun 2010 09:16:38 GMT Message-ID: <1298612.100121275383797233.JavaMail.jira@thor> Date: Tue, 1 Jun 2010 05:16:37 -0400 (EDT) From: "Michael McCandless (JIRA)" To: dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-2299) if you open an NRT reader while addIndexes* is running it may miss segments MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-2299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12873923#action_12873923 ] Michael McCandless commented on LUCENE-2299: -------------------------------------------- bq. So is in 3.1. Yes. > if you open an NRT reader while addIndexes* is running it may miss segments > --------------------------------------------------------------------------- > > Key: LUCENE-2299 > URL: https://issues.apache.org/jira/browse/LUCENE-2299 > Project: Lucene - Java > Issue Type: Bug > Components: Index > Affects Versions: 2.9.3, 3.0.2, 3.1, 4.0 > Reporter: Michael McCandless > Assignee: Michael McCandless > Priority: Minor > Fix For: 2.9.3, 3.0.2, 3.1, 4.0 > > Attachments: LUCENE-2299.patch > > > Earwin spotted this in pending ongoing refactoring of Dir/MultiReader, but I wanted to open this separately just to make sure we fix it for 3.1... > This is the fix: > {code} > Index: src/java/org/apache/lucene/index/DirectoryReader.java > =================================================================== > --- src/java/org/apache/lucene/index/DirectoryReader.java (revision 919119) > +++ src/java/org/apache/lucene/index/DirectoryReader.java (working copy) > @@ -145,7 +145,7 @@ > for (int i=0;i boolean success = false; > try { > - final SegmentInfo info = infos.info(upto); > + final SegmentInfo info = infos.info(i); > if (info.dir == dir) { > readers[upto++] = writer.readerPool.getReadOnlyClone(info, true, termInfosIndexDivisor); > } > {code} -- 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: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org