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

Unexpected merge exception when merging sparse points fields

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.3, 7.0
    • None
    • None
    • New

    Description

      Spinoff from this user thread: http://markmail.org/thread/vwdvjgupyz6heep5

      If you have a segment that has points, but a given field ("id") didn't index points, and a later segment where field "id" does index points, when try to merge those segments we hit this (incorrect!) exception:

      Caused by: org.apache.lucene.index.MergePolicy$MergeException: java.lang.IllegalArgumentException: field="id" did not index point values
      	at __randomizedtesting.SeedInfo.seed([9F3E7B030EF482BD]:0)
      	at org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:668)
      	at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:648)
      Caused by: java.lang.IllegalArgumentException: field="id" did not index point values
      	at org.apache.lucene.codecs.lucene60.Lucene60PointsReader.getBKDReader(Lucene60PointsReader.java:126)
      	at org.apache.lucene.codecs.lucene60.Lucene60PointsReader.size(Lucene60PointsReader.java:224)
      	at org.apache.lucene.codecs.lucene60.Lucene60PointsWriter.merge(Lucene60PointsWriter.java:169)
      	at org.apache.lucene.index.SegmentMerger.mergePoints(SegmentMerger.java:173)
      	at org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:122)
      	at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:4287)
      	at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3864)
      	at org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:588)
      	at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:626)
      

      Attachments

        1. LUCENE-7491.patch
          6 kB
          Michael McCandless
        2. LUCENE-7491.patch
          1 kB
          Michael McCandless

        Activity

          People

            mikemccand Michael McCandless
            mikemccand Michael McCandless
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: