Skip to content

[Bug]: TestProxyRetryPreservesAppliedHandoffRepresentative times out in coverage CI #27809

Closed

Description

@gouhongshen

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

Activity

  1. self-assigned this
    on Aug 28, 2026
  2. added
    kind/bug
    severity/s0
    ai-easy
    and removed on Aug 28, 2026
  3. gouhongshen commented on Aug 28, 2026

    @gouhongshen
    ContributorAuthor

    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 a273329dfe100fa13934ca6cc4a13c504ef1f728 is a child of current main and changes only pkg/fileservice; it has no pkg/lockservice diff. 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 with GOMAXPROCS=1; 50 coverage-mode iterations under eight CPU hogs; the CI-style all-package -coverpkg invocation; and 50 -race iterations.

    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.

  4. added and removed
    severity/s0
    on Aug 28, 2026
  5. XuPeng-SH commented on Aug 31, 2026

    @XuPeng-SH
    Contributor

    追加证据(2026-08-31):该问题在 PR #27879 的覆盖率 CI 中再次出现。

    该 PR 只改动 pkg/vm/engine/disttae/...,没有 lockservice 代码或测试变更。失败形态与本 issue 记录的 run 33169880877 相同,因此这次复现进一步支持“覆盖率 CI 下的 lockservice 测试偶发通知/状态转换未完成”,但仍不能证明具体阻塞边,也不能归因于 PR #27879。日志中的 missing Unix socket 和约 30 秒后台任务耗时发生在断言失败后的清理阶段,不能作为原始根因证据。

    结论保持不变:维持 deferred。若再次发生,应在 30 秒超时时采集 goroutine stacks、owner holder、waiter 队列及通知状态;在获得这些现场信息或确定性复现前,不修改生产 lockservice 逻辑。

  6. added
    severity/s0
    and removed on Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ai-easykind/bugseverity/s0

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions