Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Suppress interrupted status during pool closure
awaitTermination will throw InterruptedException if the interrupted status is set initially when it is called, even if no wait is required. Pool closure should not respect active interrupted status when shutting down and awaiting termination as a result of its call from executionPhaseEnding, which will occur during abnormal exits from ExecutionTool. Ignore this status initially and restore the flag upon exit of the factory close. An external interrupt which occurs during the awaitTermination will still trigger an InterruptedException, as expected. Fixes bazelbuild#13512 Closes bazelbuild#13521. PiperOrigin-RevId: 377006347
- Loading branch information