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

MultiCollector does not handle CollectionTerminatedException correctly

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: core/search
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: