[crac] RFR: 8362238: [CRaC] crac/fileDescriptors/FileWatcherThreadTest should wait for events with timeout

Timofei Pushkin tpushkin at openjdk.org
Thu Feb 5 14:18:22 UTC 2026


On Thu, 5 Feb 2026 14:04:10 GMT, Sergey Nazarkin <snazarki at openjdk.org> wrote:

> test/jdk/jdk/crac/fileDescriptors/FileWatcherThreadTest.java may be affected by race condition. Particularly case with checkpointWithoutKey=false may wait infinite temporary file is created before WatchKey is acquired. Since the bug is never reproduced locally I suggest to fix step-by-step. Let’s introduce timeout case firstly.

@snazarkin Could you please enable GitHub Actions in your fork so that we can ensure the tests don't start failing for some reason? You'll probably also need to add an empty commit for the CI to start.

Ah, ignore that, it just took 10 minutes for the tests to show up

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

PR Comment: https://git.openjdk.org/crac/pull/293#issuecomment-3853949394
PR Comment: https://git.openjdk.org/crac/pull/293#issuecomment-3853959242


More information about the crac-dev mailing list