Repository navigation
Description
Summary
TestIssue26640CrossAccountRestoreRebindsPrivileges failed in PR #28443 before reaching any restore or privilege assertion. The failure is a recurrence of the embedded-cluster control-plane failure family, not a regression in the PR's QUOTE() change.
The exact failure was recorded in:
- PR: fix(function): align QUOTE with MySQL #28443
- UT job: https://github.com/matrixorigin/matrixone/actions/runs/34277637874/job/102234520910
- Test:
pkg/tests/issues.TestIssue26640CrossAccountRestoreRebindsPrivileges
Evidence
At 2026-09-08 21:15:47 UTC, the embedded LogService reported a HAKeeper checker timeout and Dragonboat reported delayed LocalTick messages. About 540 ms later, the HAKeeper client returned backend connection closed while allocating an ID. The same connection failure then reached CN heartbeat, background catalog work, and the foreground CREATE ACCOUNT statement:
failed to get checker state: timeout
[00000:31072] had 7 LocalTick msgs in one batch
failed to allocate id: backend connection closed
failed to send cn heartbeat: backend connection closed
create account `issue_26640_target` ...: backend connection closed
The test failed during setup at issue_26640_test.go:58; it never executed the restore assertions. The job also recorded later HAKeeper checker/proposal timeouts and 1–2 second WAL/commit latency.
Proven and unknown causes
Proven:
- the observed SQL error is a downstream control-plane transport failure;
managedHAKeeperClientresets a failed client generation but treatsErrBackendClosedas non-retryable, unlike EOF/UnexpectedEOF;- the caller therefore receives one transient transport error immediately instead of using the existing bounded retry budget.
Not proven by this run:
- whether the first fault was Dragonboat scheduling starvation, WAL/IO pressure, or the MORPC transport itself;
- whether the embedded runner still needs more admission/resource isolation after test: share expensive fixtures and report setup timing #28432 and fix: eliminate load-sensitive timeout assumptions #27985.
Expected behavior
A transient HAKeeper backend closure should invalidate that generation and retry through a replacement connection until the caller's existing deadline expires. A permanent checker/raft outage must still return a bounded, actionable error; this issue does not propose retrying SQL or hiding an unhealthy cluster.
Related
- [Bug]: Ubuntu UT job cascades across packages after cluster and checkpoint timeouts #26519 and [Bug]: Embedded-cluster UTs still lose HAKeeper connections under Ubuntu/x86 load #26522: broader embedded-cluster/HAKeeper timeout cascades
- [Bug]: TestIssue26095 intermittently loses the shared HAKeeper connection in UT CI #27750: earlier shared HAKeeper connection reset recurrence
- fix(embed): align HAKeeper transport timeout under race #27849 and fix: eliminate load-sensitive timeout assumptions #27985: transport timeout/lifecycle fixes already merged
- [Bug] dev:distributed join aborts when remote dispatch targets another local pipeline tree #28313 / fix(morpc): avoid client stream sequence gaps #28358: separate remote-dispatch sequence-gap failure; fix(morpc): avoid client stream sequence gaps #28358 is already merged and current main passes the exact regression test
Activity
XuPeng-SH commentedon Sep 9, 2026
Implemented in PR #28453: #28453. The patch retries bounded HAKeeper transport-generation failures and makes managed-client shutdown terminal so late failures cannot recreate a closed transport. It also adds deterministic retry, deadline, in-flight close, and concurrent close tests.
fix(logservice): retry transient HAKeeper backend closures (#28453)
fix(logservice): retry transient HAKeeper backend closures (matrixori…
fix(logservice): retry transient HAKeeper backend closures (matrixori…
fix(logservice): retry transient HAKeeper backend closures (matrixori…
[4.2-dev] fix(logservice): harden HAKeeper retry and shutdown (#32847)