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 0C9DF78EC for ; Mon, 1 Aug 2011 16:06:36 +0000 (UTC) Received: (qmail 53066 invoked by uid 500); 1 Aug 2011 16:06:34 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 53013 invoked by uid 500); 1 Aug 2011 16:06:33 -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 52998 invoked by uid 99); 1 Aug 2011 16:06:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Aug 2011 16:06:33 +0000 X-ASF-Spam-Status: No, hits=-2000.7 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; Mon, 01 Aug 2011 16:06:31 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9F52697889 for ; Mon, 1 Aug 2011 16:06:09 +0000 (UTC) Date: Mon, 1 Aug 2011 16:06:09 +0000 (UTC) From: "Michael McCandless (JIRA)" To: dev@lucene.apache.org Message-ID: <1255468107.23079.1312214769633.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <222300428.16010.1311873429902.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (LUCENE-3348) IndexWriter applies wrong deletes during concurrent flush-all 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-3348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13073588#comment-13073588 ] Michael McCandless commented on LUCENE-3348: -------------------------------------------- Here's what I run with the while1 tester in luceneutil: {{TestStressNRT -iters 3 -verbose -seed -6208047570437556381:-3138230871915238634}} I think what's special about the seed is maxBufferedDocs is 3, so we are doing tons of segment flushing. I dumbed back the test somewhat (turned off merging entirely, only 1 reader thread, up to 5 writer threads, and it still fails. > IndexWriter applies wrong deletes during concurrent flush-all > ------------------------------------------------------------- > > Key: LUCENE-3348 > URL: https://issues.apache.org/jira/browse/LUCENE-3348 > Project: Lucene - Java > Issue Type: Bug > Components: core/index > Reporter: Michael McCandless > Assignee: Michael McCandless > Fix For: 3.4, 4.0 > > Attachments: LUCENE-3348.patch, LUCENE-3348.patch, LUCENE-3348.patch > > > Yonik uncovered this with the TestRealTimeGet test: if a flush-all is > underway, it is possible for an incoming update to pick a DWPT that is > stale, ie, not yet pulled/marked for flushing, yet the DW has cutover > to a new deletes queue. If this happens, and the deleted term was > also updated in one of the non-stale DWPTs, then the wrong document is > deleted and the test fails by detecting the wrong value. > There's a 2nd failure mode that I haven't figured out yet, whereby 2 > docs are returned when searching by id (there should only ever be 1 > doc since the test uses updateDocument which is atomic wrt > commit/reopen). > Yonik verified the test passes pre-DWPT, so my guess is (but I > have yet to verify) this test also passes on 3.x. I'll backport > the test to 3.x to be sure. -- 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