[
https://issues.apache.org/jira/browse/LUCENE-7710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15883554#comment-15883554
]
Michael McCandless commented on LUCENE-7710:
--------------------------------------------
Why are you hitting so many crazy exceptions [~mdrob]!
Patch looks great; I'll commit soon. Thanks [~mdrob]!
> BlockPackedReader to throw better exception
> -------------------------------------------
>
> Key: LUCENE-7710
> URL: https://issues.apache.org/jira/browse/LUCENE-7710
> Project: Lucene - Core
> Issue Type: Improvement
> Affects Versions: 4.10.3
> Reporter: Mike Drob
> Attachments: LUCENE-7710.patch
>
>
> BlockPackedReader doesn't tell us which file we failed reading. Here's a
> stack trace from a 4.10.3 install, but it applies to trunk as well.
> {noformat}
> org.apache.solr.common.SolrException; null:java.io.IOException: Corrupted
> at
> org.apache.lucene.util.packed.BlockPackedReader.<init>(BlockPackedReader.java:56)
> at
> org.apache.lucene.codecs.lucene42.Lucene42DocValuesProducer.loadNumeric(Lucene42DocValuesProducer.java:204)
> at
> org.apache.lucene.codecs.lucene42.Lucene42DocValuesProducer.getNumeric(Lucene42DocValuesProducer.java:174)
> at
> org.apache.lucene.codecs.perfield.PerFieldDocValuesFormat$FieldsReader.getNumeric(PerFieldDocValuesFormat.java:248)
> at
> org.apache.lucene.index.SegmentCoreReaders.getNumericDocValues(SegmentCoreReaders.java:194)
> at
> org.apache.lucene.index.SegmentReader.getNumericDocValues(SegmentReader.java:229)
> at org.apache.lucene.search.FieldCacheImpl.getLongs(FieldCacheImpl.java:883)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]