Skip to content

[Bug]: embedded-cluster bootstrap panics on HAKeeper RPC reset in release-branch CI #32323

Closed

Description

@ck89119

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

Actual Behavior

Two tests panic during embedded-cluster initialization, before reaching their intended query/connection behavior:

  1. pkg/embed.TestBaseClusterCanWorkWithNewCluster: at 2026-11-06 04:29:22 UTC, bootstrap fails while creating information_schema.TRIGGERS; HAKeeper ID allocation reports RPC connection reset on 127.0.0.1:10980.
  2. pkg/tests/issues.TestClientDisconnectCancelsQueryAndRollsBack: at 04:31:44 UTC, the same bootstrap DDL fails after HAKeeper ID allocation resets its connection to 127.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

  1. Run the above Ubuntu/x86 UT workflow with package parallelism 8.
  2. Inspect the two exact failed outputs and their preceding HAKeeper timeouts.
  3. 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/issues

These 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.

Metadata

Metadata

Assignees

Labels

kind/bugneeds-triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions