Repository navigation
Description
Is there an existing issue for the same bug?
- I have checked the existing issues.
Branch Name
main
Commit ID
a273329dfe100fa13934ca6cc4a13c504ef1f728
Other Environment Information
- Hardware parameters: GitHub-hosted Ubuntu x86 runner
- OS type: Ubuntu
- Others: MatrixOne ALL CI,
Matrixone UT Coverage / UT Coverage on Ubuntu/x86, workflow run 33169880877 attempt 1, failed job 98844324806.
Actual Behavior
The coverage UT job failed only github.com/matrixorigin/matrixone/pkg/lockservice because TestProxyRetryPreservesAppliedHandoffRepresentative exceeded its context deadline after 30.11 seconds:
lock_table_proxy_test.go:1308: Received unexpected error:
context deadline exceeded
--- FAIL: TestProxyRetryPreservesAppliedHandoffRepresentative (30.11s)
FAIL github.com/matrixorigin/matrixone/pkg/lockservice 128.851s
The test had started a two-service proxy-handoff scenario. At the deadline, the log showed the allocator clean-commit task and the lockservice keep-remote-lock tasks each taking about 30 seconds. Subsequent cleanup then reported that the Unix service socket no longer existed.
This was observed on PR #27789, whose only diff is a fileservice lifecycle-test synchronization change. The failing package is pkg/lockservice; the PR does not change lockservice code or tests.
Expected Behavior
TestProxyRetryPreservesAppliedHandoffRepresentative should complete its applied-handoff/retry assertions within its configured test deadline under the coverage CI workload.
Steps to Reproduce
1. Run MatrixOne ALL CI coverage unit tests on Ubuntu/x86 at commit a273329dfe100fa13934ca6cc4a13c504ef1f728.
2. Execute the pkg/lockservice test suite, including TestProxyRetryPreservesAppliedHandoffRepresentative.
3. Observe the test timing out at lock_table_proxy_test.go:1308 after approximately 30 seconds.
Additional information
- Failed job: https://github.com/matrixorigin/matrixone/actions/runs/33169880877/job/98844324806
- Workflow run: https://github.com/matrixorigin/matrixone/actions/runs/33169880877
- CI diagnostics artifact: https://github.com/matrixorigin/matrixone/actions/runs/33169880877/artifacts/9685928994
- The diagnostic report recorded two fail events: the named test and its containing
pkg/lockservicepackage. - Searches for the exact test name,
ProxyRetry, and the source location found no existing issue for this failure. Similar historical lockservice timeout reports concern different tests or production RPC behavior and do not establish the same root cause. - Root cause remains unconfirmed; this report intentionally records the observed CI regression without inferring a fix.
Activity
gouhongshen commentedon Aug 28, 2026
Triage decision: defer.
Reason: the report records one coverage-CI timeout, but the available diagnostics do not identify the blocked edge. At 30 seconds the final exclusive-lock wait's context expired; the later 30-second background-task and missing-socket messages are cleanup after that assertion failed, not evidence of the original blockage.
Current evidence: failure commit
a273329dfe100fa13934ca6cc4a13c504ef1f728is a child of currentmainand changes onlypkg/fileservice; it has nopkg/lockservicediff. The CI artifact shows this test's two services completed setup in about 7 ms, then no test-state diagnostic until the deadline. The existing UT already constructs the exact response-lost applied-handoff retry, representative preservation, queued exclusive waiter, and final shared-lock release. Local runs passed: the focused UT; 100 coverage-mode iterations; 100 iterations withGOMAXPROCS=1; 50 coverage-mode iterations under eight CPU hogs; the CI-style all-package-coverpkginvocation; and 50-raceiterations.Attempted test construction therefore cannot make a new regression assertion stronger than the existing one: without a deterministic reproduction or goroutine/owner/waiter snapshot from the failure, changing lockservice would be speculative.
To resume: capture goroutine stacks plus owner transaction and waiter/notification state when this timeout occurs, or obtain a deterministic reproducer that identifies the stalled transition. That evidence can support a focused fix and regression test.
XuPeng-SH commentedon Aug 31, 2026
追加证据(2026-08-31):该问题在 PR #27879 的覆盖率 CI 中再次出现。
5cb5920b7132a70acb7be643c132d2e483df4c30pkg/lockservice / TestProxyRetryPreservesAppliedHandoffRepresentativelock_table_proxy_test.go:1308收到context deadline exceeded,测试耗时 30.11 秒;随后包级测试在 120.194 秒失败。该 PR 只改动
pkg/vm/engine/disttae/...,没有 lockservice 代码或测试变更。失败形态与本 issue 记录的 run33169880877相同,因此这次复现进一步支持“覆盖率 CI 下的 lockservice 测试偶发通知/状态转换未完成”,但仍不能证明具体阻塞边,也不能归因于 PR #27879。日志中的 missing Unix socket 和约 30 秒后台任务耗时发生在断言失败后的清理阶段,不能作为原始根因证据。结论保持不变:维持
deferred。若再次发生,应在 30 秒超时时采集 goroutine stacks、owner holder、waiter 队列及通知状态;在获得这些现场信息或确定性复现前,不修改生产 lockservice 逻辑。test: remove CDC timing races and isolate ISCP recovery checks (#28173)
test: remove CDC timing races and isolate ISCP recovery checks (matri…
test: remove CDC timing races and isolate ISCP recovery checks (matri…
test: remove CDC timing races and isolate ISCP recovery checks (matri…