Repository navigation
pool: the release-meets-resize test waits until the release blocks on the old record - #678
Merged
Merged
Conversation
CMGS
force-pushed
the
release-test-waiter
branch
from
December 1, 2026 11:33
0170982 to
23d870d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #677 (base
pool-cleanup). Test only, one line.TestAReleaseThatMeetsAResizeReleasesTheResizedClaimstarted the release from the resize hook and then slept 10 ms before it let the resize go on. If the release goroutine first resolved the id after the resize had finished, it found the new record at once, and the test passed without theErrReplacedretry inManager.Release.The hook now calls the package's
waitLockWaiteron thereleaseRowedframe: the resize goes on only when the release holds the old record and waits on its transition lock.releaseRowedis reached only afterresolvereturned a record, and while the hook blocks that record is the old one.Checks
-race -count=50: ok.Release),-race -count=30: 30 of 30 fail, idle and under CPU load (24 busy loops on 12 CPUs), withrelease that met the resize = sandbox changed while the call waited; retry, want nil.0 issues., asl and fmt clean, comments +0 −0, darwin and linux race tests green.No production code changes; no hot-path cost.