spark
spark copied to clipboard
[SPARK-53622][CORE][TEST] Improve `UninterruptibleThreadSuite`
What changes were proposed in this pull request?
Implement several code improvement in UninterruptibleThreadSuite:
- run several iterations of stress test
- log
InterruptedException - improve
asserterror message ("false did not equal true" => "hasInterruptedException was false") - use
awaitinstead ofsleep - fail test fast
Why are the changes needed?
improve test coverage of UninterruptibleThread and help with test failure troubleshooting
Does this PR introduce any user-facing change?
No
How was this patch tested?
Run modified test
Was this patch authored or co-authored using generative AI tooling?
No
@cloud-fan @Ngone51 Please take a look
@cloud-fan @Ngone51 Please take a look
@cloud-fan Please take a look