You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: TestSessionCloseRetainsCleanupWhenRetainedCapIsFull races cleanup ownership transfer #26279
Hardware parameters: GitHub Actions Ubuntu/x86 runner; also reproduced on
local macOS/arm64
OS type: Ubuntu/x86 in CI, macOS/arm64 locally
Others: Go 1.26.4
Actual Behavior
TestSessionCloseRetainsCleanupWhenRetainedCapIsFull intermittently fails at pkg/sql/plan/function/func_unary_test.go:9509:
Error: Should be true
Test: TestSessionCloseRetainsCleanupWhenRetainedCapIsFull
The preceding log shows that cleanup ownership was successfully transferred:
ReleaseUserLevelLocksOnSessionClose transferred cleanup ownership after release failure
The test only checks userLevelLocks.retainedCloseCleanups[owner]. The
asynchronous retained cleanup worker can transfer the request to detached
cleanup before that assertion, so the assertion observes false even though
cleanup ownership has not been lost.
This failed in PR #26258 CI at merge head bf402a5103f04c48f27faa3b2706e49ddaeb8cb2. The relevant production and test
files are identical between that merge head and its main parent ad4cd9da05d0a85829d359cc4ccd3bac90016154, so the failure is unrelated to the
PR diff.
Expected Behavior
The test should assert durable cleanup ownership regardless of whether the
request is currently retained in retainedCloseCleanups or has already been
transferred to detached cleanup. Repeated package tests should pass
deterministically.
Activity