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

ToParentBlockJoinQuery throws exception on empty parent filter DocIdSet

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.3, 6.0
    • Fix Version/s: 4.3, 6.0
    • Component/s: modules/join
    • Labels:
      None
    • Lucene Fields:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: