Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bogus assertion tripped by force-executed tasks (#104581)
Today if you submit a force-executing task to a fixed executor with an unbounded queue after the executor has been shut down then the `EsAbortPolicy` will incorrectly throw an `IllegalStateException` which ends up tripping an assertion. This is a legitimate thing to happen, so this commit introduces a different rejection handler to deal with it. It also introduces a check for a shut-down bounded-queue executor on rejection to make sure we don't force the task onto a queue that's never going to be processed. Closes #104580
- Loading branch information
1 parent
e3009f3
commit 2312d15
Showing
4 changed files
with
164 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pr: 104581 | ||
summary: Fix bogus assertion tripped by force-executed tasks | ||
area: Infra/Core | ||
type: bug | ||
issues: | ||
- 104580 |
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
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