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

BlockPackedReader to throw better exception

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.10.3
    • 6.5, 7.0
    • None
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment