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

ToParentBlockJoinQuery throws exception on empty parent filter DocIdSet

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.3, 6.0
    • 4.3, 6.0
    • modules/join
    • None
    • New, Patch Available

    Description

      previously DocIdSet.EMPTY_DOCIDSET retuned NO_MORE_DOCS by default when DocIdSetIterator#docId() was called but since LUCENE-4924 we return -1 if the empty iterator is unpositioned / not exhausted. This causes an IllegalStateException since we couldn't detect the empty DocIdSet. Our tests somehow don't catch this and I ran into it integrating my RC0 that I build into ES last night so this is unreleased...

      Attachments

        1. LUCENE-4940.patch
          4 kB
          Simon Willnauer

        Activity

          People

            simonw Simon Willnauer
            simonw Simon Willnauer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment