You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Christine Poerschke (Jira)" <ji...@apache.org> on 2022/03/03 17:43:00 UTC

[jira] [Commented] (LUCENE-10441) ArrayIndexOutOfBoundsException during indexing

    [ https://issues.apache.org/jira/browse/LUCENE-10441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17500933#comment-17500933 ] 

Christine Poerschke commented on LUCENE-10441:
----------------------------------------------

line 179 from the stacktrace above is https://github.com/apache/lucene-solr/blob/releases/lucene-solr/8.10.0/lucene/core/src/java/org/apache/lucene/util/BytesRefHash.java#L179 i.e.
{code}
pool.setBytesRef(scratch, bytesStart[compact[i]]);
{code}
and {{pool}} as per https://github.com/apache/lucene-solr/blob/releases/lucene-solr/8.10.0/lucene/core/src/java/org/apache/lucene/util/BytesRefHash.java#L55 is of {{ByteBlockPool}} type. So this issue could be similar to or same as the LUCENE-8614 issue.

> ArrayIndexOutOfBoundsException during indexing
> ----------------------------------------------
>
>                 Key: LUCENE-10441
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10441
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Peixin Li
>            Priority: Major
>
> Hi experts!, i have facing ArrayIndexOutOfBoundsException during indexing and committing documents, this exception gives me no clue about what happened so i have little information for debugging, can i have some suggest about what could be and how to fix this error? i'm using Lucene 8.10.0
> {code:java}
> java.lang.ArrayIndexOutOfBoundsException: -1
>     at org.apache.lucene.util.BytesRefHash$1.get(BytesRefHash.java:179)
>     at org.apache.lucene.util.StringMSBRadixSorter$1.get(StringMSBRadixSorter.java:42)
>     at org.apache.lucene.util.StringMSBRadixSorter$1.setPivot(StringMSBRadixSorter.java:63)
>     at org.apache.lucene.util.Sorter.binarySort(Sorter.java:192)
>     at org.apache.lucene.util.Sorter.binarySort(Sorter.java:187)
>     at org.apache.lucene.util.IntroSorter.quicksort(IntroSorter.java:41)
>     at org.apache.lucene.util.IntroSorter.quicksort(IntroSorter.java:83)
>     at org.apache.lucene.util.IntroSorter.sort(IntroSorter.java:36)
>     at org.apache.lucene.util.MSBRadixSorter.introSort(MSBRadixSorter.java:133)
>     at org.apache.lucene.util.MSBRadixSorter.sort(MSBRadixSorter.java:126)
>     at org.apache.lucene.util.MSBRadixSorter.sort(MSBRadixSorter.java:121)
>     at org.apache.lucene.util.BytesRefHash.sort(BytesRefHash.java:183)
>     at org.apache.lucene.index.SortedSetDocValuesWriter.flush(SortedSetDocValuesWriter.java:171)
>     at org.apache.lucene.index.DefaultIndexingChain.writeDocValues(DefaultIndexingChain.java:348)
>     at org.apache.lucene.index.DefaultIndexingChain.flush(DefaultIndexingChain.java:228)
>     at org.apache.lucene.index.DocumentsWriterPerThread.flush(DocumentsWriterPerThread.java:350)
>     at org.apache.lucene.index.DocumentsWriter.doFlush(DocumentsWriter.java:476)
>     at org.apache.lucene.index.DocumentsWriter.flushAllThreads(DocumentsWriter.java:656)
>     at org.apache.lucene.index.IndexWriter.prepareCommitInternal(IndexWriter.java:3364)
>     at org.apache.lucene.index.IndexWriter.commitInternal(IndexWriter.java:3770)
>     at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:3728) {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org