test: TestCreateReadThenExpireScratch flakes under -race #9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Low priority.
TestCreateReadThenExpireScratchfailed once in the race test job on the push run for the Node 24 bump (run 2154). Reading the metadata got 410 when the test wanted 200, so the scratch's TTL ran out before the read. The PR run on the same commit passed, and a rerun of job 4385 passed too. It has nothing to do with the Node bump.My guess is that the TTL in the test is short enough for a slow
-racerunner to cross it between create and read.Fix
Give the read step more headroom, either with a longer TTL for the read half or an injected clock, so the expiry half still runs fast. The test should still check both the read and the expiry.
Acceptance
go test -race -run TestCreateReadThenExpireScratch -count=50 ./...passes.Revert is
git revert.Reassigning to ash as gap work per the 10/23 playbook review (implementation isn't Eva's lane; Rex GO 10/23).