Repository navigation
Description
Is there an existing issue for the same bug?
- I have checked the existing issues.
Searched both exact test names and open issues for information_schema / connection reset / HAKeeper bootstrap. Related historical symptom: closed #26519. No matching open issue was found for this release-branch observation.
Branch Name
4.1.6-hotfix (PR #32315)
Commit ID
2406e305a6df62e697afa47486d49b0c7c638a6c
Other Environment Information
- Run: https://github.com/matrixorigin/matrixone/actions/runs/42160982377
- Failed Ubuntu/x86 UT job: https://github.com/matrixorigin/matrixone/actions/runs/42160982377/job/127706772890
- Go 1.26.4, linux/amd64, race mode,
matrixone_testtag,make ut UT_CONFIGURED=1 UT_PARALLEL=8 UT_TIMEOUT=40 UT_SHARD=all. - Raw output is retained in artifact
ut-diagnostics-42160982377-1-all, pathsut-report/failed/outputs/embed/TestBaseClusterCanWorkWithNewClusterandut-report/failed/outputs/issues/TestClientDisconnectCancelsQueryAndRollsBack.
Actual Behavior
Two tests panic during embedded-cluster initialization, before reaching their intended query/connection behavior:
pkg/embed.TestBaseClusterCanWorkWithNewCluster: at 2026-11-06 04:29:22 UTC, bootstrap fails while creatinginformation_schema.TRIGGERS; HAKeeper ID allocation reports RPC connection reset on127.0.0.1:10980.pkg/tests/issues.TestClientDisconnectCancelsQueryAndRollsBack: at 04:31:44 UTC, the same bootstrap DDL fails after HAKeeper ID allocation resets its connection to127.0.0.1:14020.
Both logs show preceding HAKeeper proposal/heartbeat timeouts, then a panic from pkg/cnservice/server.go through pkg/embed/operator.go:
panic: internal error: [information_schema] init information_schema tables error:
writeto tcp4 ...: read ...: read: connection reset by peer,
sql: CREATE TABLE information_schema.TRIGGERS (...)
This run also has a distinct, reproducible test import-cycle build error from #32315 (batch -> aggexec -> hashmap -> batch). That defect is being fixed in #32315 and must not be conflated with these runtime bootstrap panics.
Expected Behavior
Embedded-cluster initialization should complete reliably, or return a cleanup-safe initialization error rather than panic from bootstrap. The disconnect test should reach its FIN/RST cancellation and rollback assertions.
Steps to Reproduce
- Run the above Ubuntu/x86 UT workflow with package parallelism 8.
- Inspect the two exact failed outputs and their preceding HAKeeper timeouts.
- For targeted investigation, use race mode and the same build tag:
go test -race -short -tags matrixone_test -count=1 -run '^TestBaseClusterCanWorkWithNewCluster$' ./pkg/embed
go test -race -short -tags matrixone_test -count=1 -run '^TestClientDisconnectCancelsQueryAndRollsBack$' ./pkg/tests/issuesThese isolated selections passed locally on macOS arm64 / Go 1.26.4, using the repository CGo wrapper, both at the CI import-cycle fix candidate and in a clean worktree at target baseline 9bde0b078363cacfcfef47371426b41a193e487f (same race/short/tag flags). Candidate test durations were approximately 30 s / 18 s, and baseline durations 29 s / 24 s. The CI runtime failure has not been reproduced locally; no claim of a confirmed root cause, pre-existing defect, or guaranteed reproduction is made.
Additional information
Track both runtime observations here rather than broadening the MARK membership patch or adding sleeps/retries/skips. Investigate cluster bootstrap lifetime, HAKeeper connection reset, and runner contention separately. A passing isolated run does not establish that the full concurrent CI job is reliable.
Activity
Stabilize native CI runners and WAL replay checkpoint test (#32353)
fix(sql): bound shared MARK membership on 4.1.6-hotfix (#32315)
Fix 4.1.6 fixture cleanup, test endpoints and WAL replay ordering (#3…