[
https://issues.apache.org/jira/browse/LUCENE-6170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14274656#comment-14274656
]
Littlestar commented on LUCENE-6170:
------------------------------------
I shared the MultiDocValues.getBinaryValues in some threads, it throw the
problem.
I changed to call MultiDocValues.getBinaryValues in each threads, it works ok.
Maby mulithread cause the problem.
how to use BinaryDocValues in mulithread, thanks.
/** Returns a BinaryDocValues for a reader's docvalues (potentially merging
on-the-fly)
* <p>
* This is a slow way to access binary values. Instead, access them
per-segment
* with {@link AtomicReader#getBinaryDocValues(String)}
* </p>
*/
AtomicReader#getBinaryDocValues(String)
Returns BinaryDocValues for this field, or null if no BinaryDocValues were
indexed for this field. The returned instance should only be used by a single
thread.
> MultiDocValues.getSortedValues cause IndexOutOfBoundsException
> --------------------------------------------------------------
>
> Key: LUCENE-6170
> URL: https://issues.apache.org/jira/browse/LUCENE-6170
> Project: Lucene - Core
> Issue Type: Bug
> Components: core/search
> Affects Versions: 4.10.1
> Reporter: Littlestar
>
> Caused by: java.lang.IndexOutOfBoundsException
> at java.nio.Buffer.checkBounds(Buffer.java:567)
> at java.nio.DirectByteBuffer.get(DirectByteBuffer.java:265)
> at
> org.apache.lucene.store.ByteBufferIndexInput.readBytes(ByteBufferIndexInput.java:95)
> at
> org.apache.lucene.codecs.lucene410.Lucene410DocValuesProducer$CompressedBinaryDocValues$CompressedBinaryTermsEnum.readTerm(Lucene410DocValuesProducer.java:909)
> at
> org.apache.lucene.codecs.lucene410.Lucene410DocValuesProducer$CompressedBinaryDocValues$CompressedBinaryTermsEnum.seekExact(Lucene410DocValuesProducer.java:1017)
> at
> org.apache.lucene.codecs.lucene410.Lucene410DocValuesProducer$CompressedBinaryDocValues.get(Lucene410DocValuesProducer.java:815)
> at
> org.apache.lucene.codecs.lucene410.Lucene410DocValuesProducer$LongBinaryDocValues.get(Lucene410DocValuesProducer.java:775)
> at
> org.apache.lucene.codecs.lucene410.Lucene410DocValuesProducer$6.lookupOrd(Lucene410DocValuesProducer.java:513)
> at
> org.apache.lucene.index.MultiDocValues$MultiSortedDocValues.lookupOrd(MultiDocValues.java:670)
> at org.apache.lucene.index.SortedDocValues.get(SortedDocValues.java:69)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]