Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 36078 invoked from network); 24 Mar 2010 15:25:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Mar 2010 15:25:50 -0000 Received: (qmail 25955 invoked by uid 500); 24 Mar 2010 15:25:48 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 25744 invoked by uid 500); 24 Mar 2010 15:25:48 -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 25729 invoked by uid 99); 24 Mar 2010 15:25:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Mar 2010 15:25:48 +0000 X-ASF-Spam-Status: No, hits=-1120.3 required=10.0 tests=ALL_TRUSTED,AWL 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; Wed, 24 Mar 2010 15:25:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4949F29A0012 for ; Wed, 24 Mar 2010 15:25:27 +0000 (UTC) Message-ID: <1314152760.461931269444327299.JavaMail.jira@brutus.apache.org> Date: Wed, 24 Mar 2010 15:25:27 +0000 (UTC) From: "Renaud Delbru (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-2344) PostingsConsumer#merge does not call finishDoc In-Reply-To: <349492687.461581269443247232.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-2344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Renaud Delbru updated LUCENE-2344: ---------------------------------- Attachment: LUCENE-2344.patch Include a fix for PostingsConsumer#merge and a unit test using the SepCodec for reproducing the errors. > PostingsConsumer#merge does not call finishDoc > ---------------------------------------------- > > Key: LUCENE-2344 > URL: https://issues.apache.org/jira/browse/LUCENE-2344 > Project: Lucene - Java > Issue Type: Bug > Components: Index > Affects Versions: Flex Branch > Reporter: Renaud Delbru > Assignee: Michael McCandless > Fix For: Flex Branch > > Attachments: LUCENE-2344.patch > > > We discovered that the current merge function in PostingsConsumer is not calling the #finishDoc method. This does not have consequences for the standard codec (since the lastPosition is set to 0 in #startDoc, and its #finishDoc method is empty), but for the SepCodec, this results in position file corruption (the lastPosition is set to 0 in #finishDoc for the SepCodec). -- 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