wake/store T10 concurrency flake (pre-existing): intermittent fail on parallel-enqueue race — de-flake the synchronization #923
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Pre-existing concurrency flake in the W2 store/ack harness, surfaced (NOT caused) by #922's review — store.sh + test-wake-store-ack.sh are byte-identical to main, and T10 failed once then passed 3/3 on rerun both in the review sandbox AND against main.
T10 ("two concurrent
store.sh enqueueget DISTINCT seqs (flock)") intest-wake-store-ack.shoccasionally fails under load (a concurrency/timing race in the test's parallel-enqueue setup or its assertion), then passes on rerun — same non-deterministic class as the T7 timing flake fixed in #918. It can intermittently red-fail an unrelated PR's CI (head-of-line for merges).FIX (test determinism, do NOT weaken the invariant): make T10's concurrent-enqueue race deterministic — ensure both background enqueues are genuinely started before the barrier, wait on both PIDs, and assert distinct+gapless seqs without a timing-sensitive window; if the flake is in the flock contention window, harden the test's synchronization (e.g. a start-barrier both children block on) rather than the product (store.sh flock is correct — the review confirmed distinct seqs on every non-flaked run). Red-first: the de-flaked T10 still catches a real aliasing regression (disable flock → RED). Priority: normal. Refs: #892, #918 (sibling T7 de-flake precedent), #922 review.