lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] Commented: (LUCENE-2327) IndexOutOfBoundsException in
Date Thu, 18 Mar 2010 15:08:27 GMT


Michael McCandless commented on LUCENE-2327:

Yikes -- you had 10 corrupted segments (of 23) and there's at least 4 different flavors of
corruption across those segments!  Curious...  What storage device did you store the index
on? ;)

Note the that "fix" just drops those segments from the index, so any docs that were in them
are lost.

> IndexOutOfBoundsException in
> --------------------------------------------
>                 Key: LUCENE-2327
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 3.0.1
>         Environment: Fedora 12
>            Reporter: Shane
>            Priority: Minor
>         Attachments: CheckIndex.txt
> When retrieving the scoreDocs from a multisearcher, the following exception is thrown:
> java.lang.IndexOutOfBoundsException: Index: 52, Size: 4
>         at java.util.ArrayList.rangeCheck(
>         at java.util.ArrayList.get(
>         at org.apache.lucene.index.FieldInfos.fieldInfo(
>         at org.apache.lucene.index.FieldInfos.fieldName(
>         at
>         at
>         at org.apache.lucene.index.SegmentTermEnum.scanTo(
>         at org.apache.lucene.index.TermInfosReader.get(
>         at org.apache.lucene.index.TermInfosReader.get(
>         at org.apache.lucene.index.SegmentReader.docFreq(
>         at org.apache.lucene.index.DirectoryReader.docFreq(
> The error is caused when the fieldNumber passed to FieldInfos.fieldInfo() is greater
than the size of array list containing the FieldInfo values.  I am not sure what the field
number represents or why it would be larger than the array list's size.  The quick fix would
be to validate the bounds but there may be a bigger underlying problem.  The issue does appear
to be directly related to LUCENE-939.  I've only been able to duplicate this in my production
environment and so can't give a good test case.

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