Skip to content

[Bug]: Test_TxnExecutorExec panics after HAKeeper connection reset during CN bootstrap #26489

Closed

Description

@ck89119

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

main

Commit ID

a5d23de

Other Environment Information

  • Hardware parameters: GitHub Actions Ubuntu/x86 runner
  • OS type: Linux/amd64
  • Others: MatrixOne ALL CI, UT job 91069918726

Actual Behavior

Test_TxnExecutorExec intermittently panics while starting its private embedded
single-CN cluster:

panic: writeto tcp4 127.0.0.1:43814->127.0.0.1:18020:
read tcp4 127.0.0.1:43814->127.0.0.1:18020:
read: connection reset by peer

The panic originates from cnservice.handleBootstrapErr during
embed.(*operator).startCNServiceLocked. Before the reset, LogService reports
Dragonboat proposal/tick timeouts and delayed LocalTick batches, followed by
failed CN/TN heartbeats.

This is a recurrence after #26299 and #26316, but with a different terminal
failure. The earlier issue failed by returning a HAKeeper startup timeout;
the current failure panics from CN bootstrap after the HAKeeper backend
connection is reset.

The failure is unrelated to PR #26448. Test_TxnExecutorExec creates its own
cluster with embed.NewCluster, while that PR changes the shared
RunBaseClusterTests configuration and authenticated issue-test routing. The
PR does not modify the CN bootstrap or Test_TxnExecutorExec paths.

Expected Behavior

Transient HAKeeper or LogService unavailability during embedded-cluster startup
should return a start error and clean up partial services. It should not panic
the UT process.

Steps to Reproduce

1. Run the Ubuntu/x86 MatrixOne UT job under CI load.
2. Execute Test_TxnExecutorExec in pkg/tests/txnexecutor.
3. Observe CN bootstrap while Dragonboat tick/proposal processing is delayed.

Additional information

Activity

  1. added
    kind/bug
    on Jul 31, 2026
  2. self-assigned this
    on Jul 31, 2026
  3. added
    severity/s0
    and removed on Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugseverity/s0

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions