cultcache-rs: the unlock-fault test tolerates a fork-exec duplicate of the lock descriptor (rs-unlock-fault-test-flake) #156
Loading…
Reference in a new issue
No description provided.
Delete branch "store-replace/unlock-fault-test-fork-race"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Cause of the run 1542 flake: the test faults the Unlock step, so release is left to the descriptor close, which frees the flock only when no duplicate of the open file description exists. a_write_that_fails_part_way spawns a child (fork-exec) on another test thread, and the child holds a duplicate until exec, so the try-lock sometimes returns LockContended. Reproduced 1 in 300 with both tests together, 0 in 300 alone; after the fix 0 in 1000. The test now retries a contended try-lock for up to two seconds; a lock never released still fails.
Spec variants:cut_spec:cut-cut-rs-unlock-fault-flake.r1, report .h1.
🤖 Generated with Claude Code