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

Logic error in Intervals.or() can cause endless loop

    XMLWordPrintableJSON

Details

    • Task
    • Status: Patch Available
    • Major
    • Resolution: Fixed
    • None
    • 7.6, 8.0
    • None
    • None
    • New

    Description

      An intervals source of the following type:

      IntervalsSource source = Intervals.ordered(
        Intervals.or(Intervals.term("term1"), Intervals.term("term2")),
        Intervals.term("term3"))

      can cause an infinite loop when queried, due to a bug in the 'no more intervals' logic in DisjunctionIntervalIterator

      Attachments

        1. LUCENE-8586.patch
          3 kB
          Alan Woodward

        Activity

          People

            romseygeek Alan Woodward
            romseygeek Alan Woodward
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: