Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 34402 invoked from network); 27 Aug 2009 20:34:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Aug 2009 20:34:03 -0000 Received: (qmail 63956 invoked by uid 500); 27 Aug 2009 20:34:02 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 63872 invoked by uid 500); 27 Aug 2009 20:34:02 -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 63864 invoked by uid 99); 27 Aug 2009 20:34:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Aug 2009 20:34:02 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Aug 2009 20:33:21 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 58C31234C1EB for ; Thu, 27 Aug 2009 13:33:01 -0700 (PDT) Message-ID: <1962350563.1251405181362.JavaMail.jira@brutus> Date: Thu, 27 Aug 2009 13:33:01 -0700 (PDT) From: "Elliot Metsger (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-1521) "fdx size mismatch" exception in StoredFieldsWriter.closeDocStore() when closing index with 500M documents In-Reply-To: <1000776475.1232119739537.JavaMail.jira@brutus> 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-1521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12748555#action_12748555 ] Elliot Metsger commented on LUCENE-1521: ---------------------------------------- I received this on 2.4.1, not sure if it is this bug or not: Exception in thread "main" java.lang.RuntimeException: after flush: fdx size mismatch: 10 docs vs 0 length in bytes of _sl3.fdx at org.apache.lucene.index.StoredFieldsWriter.closeDocStore(StoredFieldsWriter.java:94) at org.apache.lucene.index.DocFieldConsumers.closeDocStore(DocFieldConsumers.java:83) at org.apache.lucene.index.DocFieldProcessor.closeDocStore(DocFieldProcessor.java:47) at org.apache.lucene.index.DocumentsWriter.closeDocStore(DocumentsWriter.java:367) at org.apache.lucene.index.DocumentsWriter.flush(DocumentsWriter.java:567) at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3540) at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:3450) at org.apache.lucene.index.IndexWriter.prepareCommit(IndexWriter.java:3363) at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:3408) at edu.jhu.library.ivoa.VOImageAccessUrlDownload.go(VOImageAccessUrlDownload.java:357) at edu.jhu.library.ivoa.VOImageAccessUrlDownload.main(VOImageAccessUrlDownload.java:103) > "fdx size mismatch" exception in StoredFieldsWriter.closeDocStore() when closing index with 500M documents > ---------------------------------------------------------------------------------------------------------- > > Key: LUCENE-1521 > URL: https://issues.apache.org/jira/browse/LUCENE-1521 > Project: Lucene - Java > Issue Type: Bug > Components: Index > Affects Versions: 2.4 > Reporter: Shon Vella > Assignee: Michael McCandless > Priority: Critical > Fix For: 2.4.1, 2.9 > > > When closing index that contains 500,000,000 randomly generated documents, an exception is thrown: > java.lang.RuntimeException: after flush: fdx size mismatch: 500000000 docs vs 4000000004 length in bytes of _0.fdx > at org.apache.lucene.index.StoredFieldsWriter.closeDocStore(StoredFieldsWriter.java:94) > at org.apache.lucene.index.DocFieldConsumers.closeDocStore(DocFieldConsumers.java:83) > at org.apache.lucene.index.DocFieldProcessor.closeDocStore(DocFieldProcessor.java:47) > at org.apache.lucene.index.DocumentsWriter.closeDocStore(DocumentsWriter.java:367) > at org.apache.lucene.index.IndexWriter.flushDocStores(IndexWriter.java:1688) > at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3518) > at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:3442) > at org.apache.lucene.index.IndexWriter.closeInternal(IndexWriter.java:1623) > at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1588) > at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1562) > ... > This appears to be a bug at StoredFieldsWriter.java:93: > if (4+state.numDocsInStore*8 != state.directory.fileLength(state.docStoreSegmentName + "." + IndexFileNames.FIELDS_INDEX_EXTENSION)) > where the multiplication by 8 is causing integer overflow. The fix would be to cast state.numDocsInStore to long before multiplying. > It appears that this is another instance of the mistake that caused bug LUCENE-1519. I did a cursory seach for \*8 against the code to see if there might be yet more instances of the same mistake, but found none. -- 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