Repository navigation
Description
Is there an existing issue for the same bug?
- I have checked the existing issues.
Searched open/closed issues for TestMultiCNShuffleJoinDrainsPersistedInputs, shuffle_multicn_test.go, and shuffle/spill/deadline combinations. No dedicated report for this exact test and failing cell was found.
Branch Name
issue-32407-main (PR #32415, targeting main)
Commit ID
d8b3acf513ca39a5d3a93dc884d06ef82d5e0ba2
Other Environment Information
- Ubuntu/x86 GitHub Actions runner, 8 CPU / 16 GiB runner class; Go 1.27.1, CGo,
-short -race -tags matrixone_test. - Run: https://github.com/matrixorigin/matrixone/actions/runs/42584847827
- Failed Unit Testing job: https://github.com/matrixorigin/matrixone/actions/runs/42584847827/job/129052235568
- Full-lane command:
make ut UT_CONFIGURED=1 UT_PARALLEL=8 UT_TIMEOUT=40 UT_SHARD=all.
Actual Behavior
TestMultiCNShuffleJoinDrainsPersistedInputs fails at pkg/tests/issues/shuffle_multicn_test.go:85 with context deadline exceeded (root elapsed 39.24s). The test creates two persisted inputs (100,000 probe / 80,000 build rows), patches analytical statistics, asserts an AP multi-CN range-shuffle plan, and checks the same join from both coordinators with and without spill.
The raw UT JSON artifact identifies the failing cell:
- 08:59:59.456 UTC: coordinator 0, spill 0.
- 08:59:59.938 UTC: coordinator 0, spill 1000.
- 09:00:01.332 UTC: coordinator 1, spill 0.
- 09:00:01.842 UTC: coordinator 1, spill 1000.
- 09:00:31.889 UTC: the final query's 30-second client context expires.
- The server subsequently observes disconnect/cancellation and closes the query; the shared fixture is quarantined and shuts down.
The query is select count(*) from probe p join build b on p.k=b.k; expected count is 80,000. The preceding three cells complete. Logs do not include synchronized pre-cancel CN goroutine stacks, so a deadlock, storage wait, or simply elapsed-time cause has not been established. Do not infer the cause from cancellation or teardown logs.
Expected Behavior
The persisted multi-CN join must finish and return 80,000 in every coordinator/spill cell, with correct remote dispatch/drain and cleanup. Diagnose the complete wait-for path before changing product code or the timeout; do not add sleeps, retries, skips, or weaken the topology/count assertions.
Steps to Reproduce
Run the Ubuntu full UT lane above. A focused diagnostic command retaining the test mode is:
GOTOOLCHAIN=go1.27.1 .agents/skills/mo-dev/scripts/mo-cgo-test \
-p=2 -parallel=2 -short -tags matrixone_test -race -v -count=1 -timeout=8m \
-run '^TestMultiCNShuffleJoinDrainsPersistedInputs$' ./pkg/tests/issuesA focused Darwin pass is not proof that the Linux full-lane failure is fixed.
Additional information
Discovered while investigating PR #32415. This is a non-PR failure candidate, not a proven pre-existing bug or infrastructure attribution. That PR changes historical-snapshot transaction selection; this test has no snapshot, and the new selection helper returns the original transaction/context without cloning for nil ScanSnapshot. No shuffle, spill, dispatch, or drain state machine is modified. Other exact-head CI lanes (SCA, coverage, selected BVT) pass.
The merged candidate e628e6c75cf2524be5dcbee2d86deff30f90dbc3 passes this exact focused test on Darwin/arm64 with the short/race/tags mode: all four cells, 10.98s test / 15.534s package. This establishes current focused behavior only. Clean official main 6a2b29954749d5a47820ed429cfa8a6c4793682f in an isolated worktree also passes the same command/mode and all four cells (40.56s root / 44.726s package; the root includes 33.13s of shared-cluster admission wait before executing its SQL). Thus the focused controls do not reproduce the Linux failure; they do not prove it pre-existing. Native inputs are unchanged between candidate and main; each worktree uses its own top-level native build. No unrelated product/test/timeout modification is included in PR #32415. One failed-job rerun will be requested after recording this evidence.
Activity
XuPeng-SH commentedon Nov 14, 2026
Consolidated into the main flaky CI/UT dynamic tracker; this standalone report is no longer tracked separately.
fix(ci): correct SCA closure and native test lifecycle ownership (#32717