Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 255E57A6C for ; Tue, 9 Aug 2011 12:47:53 +0000 (UTC) Received: (qmail 24595 invoked by uid 500); 9 Aug 2011 12:47:51 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 24489 invoked by uid 500); 9 Aug 2011 12:47:51 -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 24480 invoked by uid 99); 9 Aug 2011 12:47:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Aug 2011 12:47:50 +0000 X-ASF-Spam-Status: No, hits=-2000.8 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Aug 2011 12:47:48 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 28FB4B3FC3 for ; Tue, 9 Aug 2011 12:47:27 +0000 (UTC) Date: Tue, 9 Aug 2011 12:47:27 +0000 (UTC) From: "Simon Willnauer (JIRA)" To: dev@lucene.apache.org Message-ID: <1064583085.19849.1312894047164.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <509827894.19842.1312893567155.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (LUCENE-3368) IndexWriter commits update documents without corresponding delete 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-3368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Simon Willnauer updated LUCENE-3368: ------------------------------------ Attachment: LUCENE-3368.patch here is a patch that clones && commits the SIS while syncing on IW. All test pass including the TestStressNRT running2400 iterations > IndexWriter commits update documents without corresponding delete > ----------------------------------------------------------------- > > Key: LUCENE-3368 > URL: https://issues.apache.org/jira/browse/LUCENE-3368 > Project: Lucene - Java > Issue Type: Bug > Components: core/index > Affects Versions: 3.0, 3.0.1, 3.0.2, 3.0.3, 3.1, 3.2, 3.3 > Reporter: Simon Willnauer > Fix For: 3.4 > > Attachments: LUCENE-3368.patch > > > while backporting the testcase from LUCENE-3348 I ran into this thread hazard in the 3.x branch. We actually fixed this issue in LUCENE-3348 for Lucene 4.0 but since DWPT has a slightly different behavior when committing segments I create a new issue to track this down in 3.x. when we prepare a commit we sync on IW flush the DW and apply all deletes then release the lock, maybeMerge and start the commit (IW#startCommit(userdata)). Yet, a new segment could be flushed via getReader and sneak into the SegementInfos which are cloned in IW#startCommit instead of in prepareCommit right after the flush. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org