You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2010/08/27 20:06:53 UTC
[jira] Updated: (LUCENE-2627) MMapDirectory chunking is buggy
[ https://issues.apache.org/jira/browse/LUCENE-2627?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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
{noformat}
junit-sequential:
[junit] Testsuite: org.apache.lucene.store.TestMultiMMap
[junit] Testcase: testRandomChunkSizes(org.apache.lucene.store.TestMultiMMap): Caused an ERROR
[junit] 233
[junit] java.lang.ArrayIndexOutOfBoundsException: 233
[junit] at org.apache.lucene.store.MMapDirectory$MultiMMapIndexInput.seek(MMapDirectory.java:371)
[junit] at org.apache.lucene.store.MMapDirectory$MultiMMapIndexInput.clone(MMapDirectory.java:394)
[junit] at org.apache.lucene.index.codecs.standard.StandardTermsDictReader$FieldReader$SegmentTermsEnum.<init>(S
tandardTermsDictReader.java:288)
[junit] at org.apache.lucene.index.codecs.standard.StandardTermsDictReader$FieldReader.iterator(StandardTermsDic
tReader.java:270)
[junit] at org.apache.lucene.index.codecs.standard.StandardTermsDictReader$TermFieldsEnum.terms(StandardTermsDic
tReader.java:240)
[junit] at org.apache.lucene.index.MultiFieldsEnum.terms(MultiFieldsEnum.java:103)
[junit] at org.apache.lucene.index.codecs.FieldsConsumer.merge(FieldsConsumer.java:49)
[junit] at org.apache.lucene.index.SegmentMerger.mergeTerms(SegmentMerger.java:657)
[junit] at org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:154)
{noformat}
> MMapDirectory chunking is buggy
> -------------------------------
>
> Key: LUCENE-2627
> URL: https://issues.apache.org/jira/browse/LUCENE-2627
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org