Repository navigation
Description
Is there an existing issue for the same bug?
- I have checked the existing issues.
Branch Name
agent/issue-30949-main-7325b873 (PR #31039, targeting main)
Commit ID
PR head: 1f962fac6e3858f82489de5ae9c823c13d347b32
Other Environment Information
- CI job: Matrixone CI execution / UT Test on Ubuntu/x86
- Run
40096008332, attempt 4, job120976236905, October 24, 2026 - Runner cgroup limits: 8 CPUs, 16 GiB memory; reported OOM and OOM-kill counters were both zero.
- Failing job and logs
Actual Behavior
github.com/matrixorigin/matrixone/pkg/vm/engine/test fails in:
TestRCSnapshotRollbackAcrossMerge/2/transferring_statement (60.21s)
snapshot_advance_test.go:691
Received unexpected error:
context deadline exceeded
context deadline exceeded
Mode 2 is snapshotAdvanceMixedTombstones (mixed in-memory and persisted deletes). The final h.txn.Commit(h.ctx) fails after the immediately preceding zero-row assertion passes. The other eight leaf cases of this test pass.
The harness creates one 60-second context before engine initialization, shared by fixture setup, insert/delete commits, flush, merge, snapshot advancement, tombstone transfer, and the final commit. See context creation and failing commit.
Selected events from the failing case (embedded UTC log timestamps):
| Time | Event | Logged duration |
|---|---|---|
| 21:12:22.286 | Fixture begins | |
| 21:12:43.631 | FLUSH-END |
7.064 s |
| 21:12:55.088 | MERGE-END |
7.176 s |
| 21:13:10.921 | CN-TRANSFER-TOMBSTONE-OBJ |
8.854 s |
| 21:13:22.329 | objectio/writer.go:764: Write Sync error: context deadline exceeded |
|
| 21:13:22.463 | rpc/handle.go:617: tn.handle.commit.error: context deadline exceeded |
Commit latency 11.101 s |
Confirmed immediate cause: the shared test context expires during the final commit/write sync after earlier operations consume most of its budget. This is a test-context deadline, not a GitHub job timeout.
Still to investigate: slow CI I/O may expose timing sensitivity in the shared budget, but the source of the latency and repeatability are not established. There is no observed result mismatch in this failure. It has not been established as a regression introduced by PR #31039; that PR does not modify this test or the disttae/TAE engine implementation.
Expected Behavior
The rollback-across-merge test should complete reliably with a justified, bounded time budget while preserving its correctness assertions and cleanup. If an operation stalls, diagnostics should identify the slow stage.
Steps to Reproduce
- Inspect the linked CI run at the revision above.
- Run
TestRCSnapshotRollbackAcrossMerge/2/transferring_statementin./pkg/vm/engine/testwith the same CI build/test configuration; also exercise the full parent test under comparable load. - Capture stage timings and compare with the base revision to distinguish test-budget sensitivity from an engine performance regression.
The linked CI failure is the observed evidence. No local reproduction or additional CI rerun has been performed for this report; reproducibility is unknown.
Additional information
Investigate flush, merge, tombstone-transfer, and commit latency before choosing a fix. Any budget or fixture changes should retain rollback/retransfer correctness checks and cancellation/cleanup coverage; simply increasing the timeout would not establish the underlying cause.
Activity
fix: resolve async index lock contention during catalog teardown (#31076