Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 64576 invoked from network); 13 Nov 2010 18:37:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Nov 2010 18:37:04 -0000 Received: (qmail 8821 invoked by uid 500); 13 Nov 2010 18:37:35 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 8730 invoked by uid 500); 13 Nov 2010 18:37:35 -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 8723 invoked by uid 99); 13 Nov 2010 18:37:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Nov 2010 18:37:35 +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; Sat, 13 Nov 2010 18:37:34 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oADIbDTO001880 for ; Sat, 13 Nov 2010 18:37:14 GMT Message-ID: <12531418.61921289673433241.JavaMail.jira@thor> Date: Sat, 13 Nov 2010 13:37:13 -0500 (EST) From: "Michael McCandless (JIRA)" To: dev@lucene.apache.org Subject: [jira] Created: (LUCENE-2759) We should never open an IndexInput when an IndexOutput is still open MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 We should never open an IndexInput when an IndexOutput is still open -------------------------------------------------------------------- Key: LUCENE-2759 URL: https://issues.apache.org/jira/browse/LUCENE-2759 Project: Lucene - Java Issue Type: Bug Components: Index Reporter: Michael McCandless Assignee: Michael McCandless Fix For: 2.9.4, 3.0.3, 3.1, 4.0 I modified MockDirWrapper to assert this (except for segments_N/segments.gen, where it's expected), and, it uncovered a couple of places involving NRT readers where we open a shared doc store file that's still open for writing. First, if you install a merged segment warmer, we were failing to force the merge of the doc stores in this case, thus potentially opening the same doc stores that are also still open for writing. Second, if you're actively adding docs in other threads when you call IW.getReader(), the other threads could sneak in and flush new segments sharing the doc stores. The returned reader then opens the doc store files that are still open for writing. -- 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