vfs/cache: Fix data race between memoryWriteCloser.Close and promoteToFast #22
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?
Goal
Unred
maintip CI. Push run https://git.s1d3sw1ped.com/s1d3sw1ped/steamcache2/actions/runs/1152 failed on tipa2ac13d317d6(post #20).vfs/diskis green; this is a separate race invfs/cache.Failure
Job
check-and-testundergo test -race -shuffle=on:Shuffle seed from the failing run:
1788294214215599121. Both tests were CONT at once (t.Parallel); PromotionFallback may be collateral from the package race detector, but the Close vs promoteToFast race is real.Do
promoteToFast/ Open does not read memory being Closed (or serialize the Close path). Prefer a production fix over silencing the test.go test -race -count=20 -shuffle=on ./vfs/cachedevelop, then land onmain. Do not merge yourself. Style:/home/box/forge/git-style.md(area: Imperative summary).#Nin the PR body.Out of scope
-raceoff, skipping the tests)Revert
git revertthe fix commit.Next action: Ash owns one PR (develop → then main). Main tip is red on this race (CI run 1152). Leave ansible leftovers alone. Do not merge yourself.
Duplicate of #21 (opened first for the same CI 1152 race). Closing this one.