myxce/.kiro/specs/ha-repl-hardening
Rongsong Shen e10cf9a6fc fix(ha-repl-hardening): n_peers count and single-node safe_lsn (task 6.5)
- Fix ha_start_election_async: ha->n_peers = n_other (other peers),
  not candidates_count (total including self). The standby_converged[]
  array is indexed by peer index, so the bound must be n_other.
- Fix ha_compute_safe_committed_lsn: return self_lsn for n_peers==0
  (prevents WAL truncation on single-node re-election).
- Integration test: 3-node cluster reaches CTRL_PRIMARY via majority
  convergence within ~20s; no degraded-mode WARN in logs.
2026-06-05 07:03:37 +00:00
..
design.md docs(ha-repl-hardening): add spec with reviewed design and approved tasks 2026-06-04 12:58:39 +00:00
raft-tla-audit.md docs(ha-repl-hardening): add spec with reviewed design and approved tasks 2026-06-04 12:58:39 +00:00
requirements.md docs(ha-repl-hardening): add spec with reviewed design and approved tasks 2026-06-04 12:58:39 +00:00
research.md docs(ha-repl-hardening): add spec with reviewed design and approved tasks 2026-06-04 12:58:39 +00:00
spec.json docs(ha-repl-hardening): add spec with reviewed design and approved tasks 2026-06-04 12:58:39 +00:00
tasks.md fix(ha-repl-hardening): n_peers count and single-node safe_lsn (task 6.5) 2026-06-05 07:03:37 +00:00