lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] Reopened: (LUCENE-1596) optimize MultiTermEnum/MultiTermDocs
Date Fri, 15 May 2009 10:00:46 GMT


Michael McCandless reopened LUCENE-1596:

I'm seeing this new AIOOBE when tracking down the intermittent failure
in TestStressIndexing2:

1) testRandomIWReader(org.apache.lucene.index.TestStressIndexing2)
java.lang.ArrayIndexOutOfBoundsException: 6
	at org.apache.lucene.index.MultiSegmentReader$
	at org.apache.lucene.index.TestStressIndexing2.verifyEquals(
	at org.apache.lucene.index.TestStressIndexing2.verifyEquals(
	at org.apache.lucene.index.TestStressIndexing2.testRandomIWReader(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at junit.framework.TestCase.runTest(
	at org.apache.lucene.util.LuceneTestCase.runTest(
	at junit.framework.TestCase.runBare(
	at junit.framework.TestResult$1.protect(
	at junit.framework.TestResult.runProtected(
	at junit.framework.TestSuite.runTest(
	at org.junit.internal.runners.CompositeRunner.runChildren(
	at org.junit.runner.JUnitCore.runMain(
	at org.junit.runner.JUnitCore.main(

I think it's because this optimization isn't admissible in the case
when one calls on a MultiTermEnum derived from a
different MultiSegmentReader.  Ie, I think there needs to be another
check that verifies in fact the MultiTermEnum passed to share the same MultiSegmentReader?

Before this optimiztion, this was OK (only the term was used from the

> optimize MultiTermEnum/MultiTermDocs
> ------------------------------------
>                 Key: LUCENE-1596
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>            Reporter: Yonik Seeley
>            Assignee: Yonik Seeley
>             Fix For: 2.9
>         Attachments: LUCENE-1596.patch
> Optimize MultiTermEnum and MultiTermDocs to avoid seeks on TermDocs that don't match
the term.

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