-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
During concurrent slice searches in IndexSearcher stop other tasks if…
… one throws an Exception. Since TaskExecutor now waits for all concurrent tasks to finish, even if one throws an Exception and when an exception is thrown, any remaining unscheduled tasks are cancelled, the next step is to notify currently running tasks to exit early. This is done via a a new QueryTimeout implementation, ExceptionBasedQueryTimeout, which holds a volatile boolean of whether any other sibling task threw an exception. If the boolean is true, then the shouldExit method returns true, so that the in progress task exits early. Closes #12278
- Loading branch information
Showing
2 changed files
with
286 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters