lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <>
Subject [jira] Updated: (LUCENE-2627) MMapDirectory chunking is buggy
Date Fri, 27 Aug 2010 18:06:53 GMT


Robert Muir updated LUCENE-2627:

    Attachment: LUCENE-2627_test.patch

attached is a random test case (wired to a value where it fails quickly for standard codec):

ant test-core -Dtestcase=TestMultiMMap -Dtests.codec=Standard

    [junit] Testsuite:
    [junit] Testcase: testRandomChunkSizes(      Caused
    [junit] 233
    [junit] java.lang.ArrayIndexOutOfBoundsException: 233
    [junit]     at$
    [junit]     at$MultiMMapIndexInput.clone(
    [junit]     at org.apache.lucene.index.codecs.standard.StandardTermsDictReader$FieldReader$SegmentTermsEnum.<init>(S
    [junit]     at org.apache.lucene.index.codecs.standard.StandardTermsDictReader$FieldReader.iterator(StandardTermsDic
    [junit]     at org.apache.lucene.index.codecs.standard.StandardTermsDictReader$TermFieldsEnum.terms(StandardTermsDic
    [junit]     at org.apache.lucene.index.MultiFieldsEnum.terms(
    [junit]     at org.apache.lucene.index.codecs.FieldsConsumer.merge(
    [junit]     at org.apache.lucene.index.SegmentMerger.mergeTerms(
    [junit]     at org.apache.lucene.index.SegmentMerger.merge(

> MMapDirectory chunking is buggy
> -------------------------------
>                 Key: LUCENE-2627
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Store
>            Reporter: Robert Muir
>         Attachments: LUCENE-2627_test.patch
> MMapDirectory uses chunking with MultiMMapIndexInput.
> Because Java's ByteBuffer uses an int to address the
> values, it's necessary to access a file >
> Integer.MAX_VALUE in size using multiple byte buffers.
> But i noticed from the clover report the entire MultiMMapIndexInput class is completely
untested: no surprise since all tests make tiny indexes.

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:
For additional commands, e-mail:

View raw message