diff options
author | Googler <noreply@google.com> | 2017-06-01 23:23:16 +0200 |
---|---|---|
committer | László Csomor <laszlocsomor@google.com> | 2017-06-02 15:26:58 +0200 |
commit | 97fc108aeb0cf7e5ad5ce6ba67273bb49faa6333 (patch) | |
tree | f734a9ef4912b6e7d4be3a74581ee72582d7e939 /src/test/java | |
parent | 484e9750f4223a5750d62d9fa1844019147497d2 (diff) |
Fix a bug in ParallelVisitor which prevents visitation task from being interrupted eagerly
The original code swallows the InterruptedException, sets the interrupt bit and
stops new tasks from being submitted. However it does not actively send an
interrupt signal to all running and pending tasks already in the pool. It is
partly due to the misleading syntax of awaitTermination, which actually quitely
waits for all tasks to exit even if interruptWorkers is set to true. Both
errors are fixed in this change.
RELNOTES: None
PiperOrigin-RevId: 157762029
Diffstat (limited to 'src/test/java')
0 files changed, 0 insertions, 0 deletions