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

MultiCollector does not handle CollectionTerminatedException correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 5.0
    • None
    • core/search
    • None

    Description

      The javadoc of the collect-method of LeafCollector states:

      Note: The collection of the current segment can be terminated by throwing a CollectionTerminatedException.

      However, the Multicollector does not catch this exception, so if one of the wrapped collectors terminates the current segment, it is terminated for every collector.
      The same is true for the getLeafCollector-method (even though this is not documented in the JavaDoc).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              christophk Christoph Kaser
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: