Repository navigation
Description
Branches and evidence
- Main: observed during review of fix(hakeeper): keep stores alive during replica recovery #33010 at
bf92bc1845eae0d4fb8cef6a9f5e3c330834c255, based onfebc2b472e15. - The same ordered single-step removal exists in the pre-PR main and 4.2-dev sources; the 4.2 branch has not been independently reproduced in this report.
- Review and real three-NodeHost reproduction.
Actual behavior
A three-voter data shard contains A, B and C. HAKeeper observes A and C reporting and schedules removal of B. Before that ordered configuration change commits, B returns and C becomes unavailable, while the Raft configuration-change index remains unchanged. A and B can still commit the removal under the old configuration. Afterwards B has been removed and A is the only available member of the two-voter configuration; WAL writes cannot commit.
The review probe first established that A and B could commit a write, and that a fresh report would reject the removal. It then delivered the previously authorized command, observed the committed removal, and found that the following write failed. This is an availability risk in the existing single-step reconfiguration path, not evidence that #33009 or #33010 introduced it.
Expected behavior
Preserve a usable quorum across membership transitions and restore the configured data-shard redundancy when a voter is permanently unavailable and a suitable replacement exists. Retain recovery of existing configured replicas, and avoid silently disabling ordinary three-voter replacement.
Investigation and acceptance
- Compare the exact 3→2→3 and 3→4→3 paths, including delayed commands, changing availability without a configuration-index change, learner catch-up/promotion, and leader loss.
- Establish the old and new quorum guarantees at the Raft commit boundary; a pre-submit heartbeat or configuration-index check alone cannot constrain which voters commit a pending change.
- Reproduce on pre-fix and candidate code with real nodes and a passing stable-failure/replacement control. Verify WAL writes before, during and after the transition, subsequent recovery, and upgrade/replay behavior.
- Review any temporary guard as a product behavior change: deferring all odd-sized voter changes would also stop normal three-voter automatic replacement.
Related: #33008, #33009, #33010 and #33062. #33062 currently tracks HAKeeper voting redundancy; this issue covers data-shard reconfiguration.
Activity
[4.2-dev] fix(hakeeper): keep stores alive during replica recovery (#…
fix(hakeeper): keep stores alive during replica recovery (#33010)