You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Test_TxnExecutorExec flakes on embedded HAKeeper startup timeout under CI load #26299
The Ubuntu/x86 unit-test job intermittently fails before Test_TxnExecutorExec reaches its SQL assertion because the embedded cluster cannot observe HAKeeper reaching the running state within the fixed two-minute startup timeout.
The preceding log shows Dragonboat scheduler delay and repeated heartbeat/proposal timeouts, including batches of 8 and 16 LocalTick messages.
Why this appears flaky rather than PR-specific
The failure occurs in c.Start() before any SQL is executed. The failing PR has no changes under pkg/tests/txnexecutor, pkg/embed, or pkg/logservice. The exact test passed locally on both the PR head (14.22s) and a clean upstream/main worktree at 6004becb5 (13.36s). The same PR head also passed the coverage UT job.
Expected behavior
Test_TxnExecutorExec should not fail solely because a heavily loaded CI runner delays the embedded single-node HAKeeper election/startup. The test should also reuse or reliably clean up embedded cluster resources.
Possible direction
Reuse the package base cluster for this test, or otherwise make embedded-cluster startup and cleanup resilient to transient scheduler starvation without weakening the SQL assertion.
Activity
test: harden HAKeeper startup under CI load
fix: respect scheduler CPU limits for RPC workers (#26403)
fix: respect scheduler CPU limits for RPC workers (matrixorigin#26403)
fix: respect scheduler CPU limits for RPC workers (matrixorigin#26403)
fix: respect scheduler CPU limits for RPC workers (matrixorigin#26403)