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

Sergey Nazarkin snazarki at openjdk.org
Thu Feb 5 14:10:57 UTC 2026


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.

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

Commit messages:
 - 8362238: [CRaC] crac/fileDescriptors/FileWatcherThreadTest should wait for events with timeout

Changes: https://git.openjdk.org/crac/pull/293/files
  Webrev: https://webrevs.openjdk.org/?repo=crac&pr=293&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8362238
  Stats: 9 lines in 1 file changed: 5 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/crac/pull/293.diff
  Fetch: git fetch https://git.openjdk.org/crac.git pull/293/head:pull/293

PR: https://git.openjdk.org/crac/pull/293


More information about the crac-dev mailing list