Repository navigation
Description
Is there an existing issue for the same bug?
- I searched open and closed issues for all three failing test names and the
lockservice/morpcgoroutine-leak signature; no matching issue was found.
Branch Name
main / PR head agent/issue-26056
Commit ID
f450bce519f192321bd6d22faf1744ac1fa27c73
Other Environment Information
- GitHub Actions job: Ubuntu/x86, Go 1.26.4
- Workflow run attempt: 1
- Failing job: Matrixone CI / UT Test on Ubuntu/x86
- The same PR head previously passed the identical Ubuntu/x86 UT check in job 91390009495.
Actual Behavior
The full Ubuntu/x86 unit-test job failed only in github.com/matrixorigin/matrixone/pkg/lockservice with three intermittent failures:
TestIssue5176reports leakedmorpc.remoteBackend/goettyread and write goroutines after the test completes.TestUnlockInRollingRestartCNreports the same class of leaked RPC/server goroutines after the rolling-restart scenario.TestCheckTxnTimeoutfailsrequire.Trueatpkg/lockservice/service_test.go:2501after the timeout path runs.
The failures are unrelated to PR #26570: that PR changes only pkg/frontend/data_branch_output*.go and git4data BVT files, while the earlier full UT run on the exact same head succeeded. The later run failed exclusively in pkg/lockservice.
Expected Behavior
pkg/lockservice unit tests should deterministically close their RPC/server resources and satisfy timeout assertions when run as part of the full Ubuntu/x86 suite.
Steps to Reproduce
- Check out
f450bce519f192321bd6d22faf1744ac1fa27c73. - Run the repository's full Ubuntu/x86 unit-test workflow (
make utthrough MatrixOne ALL CI). - Inspect the
pkg/lockservicereport for:TestIssue5176TestCheckTxnTimeoutTestUnlockInRollingRestartCN
The failure is intermittent: the earlier workflow on the exact commit passed, while run 30709458052 attempt 1 failed.
Additional information
The failing log records FAIL_UT_CASES=TestIssue5176,TestCheckTxnTimeout,TestUnlockInRollingRestartCN. The leak stacks include pkg/common/morpc/backend.go (writeLoop, readLoop, fetch), pkg/common/morpc/server.go:startWriteLoop, and goetty connection reads. This issue tracks both observed failure modes from the same pkg/lockservice package run so the evidence is not lost when the unrelated PR workflow is rerun.
Activity
test(lockservice): retry indeterminate txn timeout checks (#26587)
test(lockservice): retry indeterminate txn timeout checks (matrixorig…
test(lockservice): retry indeterminate txn timeout checks (matrixorig…
test(lockservice): retry indeterminate txn timeout checks (matrixorig…