RFR: 8333391: Test com/sun/jdi/InterruptHangTest.java failed: Thread was never interrupted during sleep

Alex Menkov amenkov at openjdk.org
Mon Jul 22 18:22:31 UTC 2024


On Fri, 19 Jul 2024 18:41:10 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:

> The test sometimes fails because the InterruptException doesn't arrive during the 100ms that the thread sleeps. My suspicion is that the interrupt is being delayed for some external reason, like temporary load on the host. I'm bumping the sleep period to 10s to hopefully avoid such an issue. This won't make the test run any slower when it passes, but will make it slower (by about 10 seconds) when it fails due to waiting longer for the InterruptException to never arrive, assuming it still might fail for this reason.
> 
> I tested by running the InterruptHangTest locally. TBD I will run all of con/sun/jdi on all supported platforms.

Marked as reviewed by amenkov (Reviewer).

-------------

PR Review: https://git.openjdk.org/jdk/pull/20263#pullrequestreview-2192261257


More information about the serviceability-dev mailing list