Make CollectionTerminatedException handling in MultiCollector configurable [LUCENE-10001]
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
In #7830, `MultiCollector` was modified to continue collecting against other leaf collectors that had not thrown a `CollectionTerminatedException` in cases where another one does. It would be nice if this behavior could be configurable. Some use-cases might actually want to early terminate all leaf collectors as soon as one signals early termination.
We could add a configurable option to the `MultiCollector#wrap` factory methods that allows users to specify the behavior they want.
---
Migrated from [LUCENE-10001](https://issues.apache.org/jira/browse/LUCENE-10001) by Greg Miller (@gsmiller), updated Jun 29 2021
Pull requests: https://github.com/apache/lucene/pull/181
Contributor guide
Assessment
This issue has not been assessed yet.