Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7710

BlockPackedReader to throw better exception

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.10.3
    • Fix Version/s: 6.5, 7.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      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.

      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)
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mdrob Mike Drob
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: