Skip to content

[Bug]: Data-shard Raft reconfiguration can strand the new quorum #33067

Open

Description

@XuPeng-SH

Branches and evidence

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.

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