myxce/src/controller
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
..
include fix(ha-bootstrap): register listener with iomgr epoll before election 2026-05-30 00:10:23 +00:00
testsuite feat(ha-repl-hardening): audit safe commit point and snapshot transfer tests (tasks 6.3, 6.4) 2026-06-05 06:21:00 +00:00
apiserver.c add kiro skills 2026-05-21 03:41:57 +00:00
CLAUDE.md chore: checkpoint all prior work for clean state 2026-06-04 13:04:16 +00:00
cluster.c feat(ha-repl-hardening): standby snapshot receive handler (task 3.5c) 2026-06-05 01:43:05 +00:00
config_repl.c feat(ha-repl-hardening): add observability log statements (task 5.4) 2026-06-05 05:36:27 +00:00
config_repl.h fix(ha-repl-hardening): wire snapshot production path (task 3.5b) 2026-06-05 01:25:00 +00:00
ctrl_metrics.c feat: P3-7 ctrl_metrics — 7 atomic counters/gauges + descriptor table + persist wiring 2026-05-08 00:04:06 +00:00
dataex.c fix(persist): zero nresvals_to_sched after free_name_val_list 2026-05-20 09:39:07 +00:00
ha.c fix(ha-repl-hardening): n_peers count and single-node safe_lsn (task 6.5) 2026-06-05 07:03:37 +00:00
ha.h feat(ha-repl-hardening): audit safe commit point and snapshot transfer tests (tasks 6.3, 6.4) 2026-06-05 06:21:00 +00:00
job.c feat: implement job state, queue state, and worker recovery in WAL replay 2026-05-08 08:19:20 +00:00
join.c fix(election-iomgr-refactor): config replication and RDHUP failover chain 2026-05-31 02:08:48 +00:00
main.c feat(ha-config-bootstrap): add peer count and cert pre-flight validation (task 2.3) 2026-05-28 04:29:31 +00:00
meson.build feat(ha-heartbeat-liveness): replace hb_timeout_thread with liveness_poll_fn (task 2.1) 2026-06-01 14:34:14 +00:00
misc.c save works 2026-03-05 16:03:37 +08:00
myapp.c chore: checkpoint all prior work for clean state 2026-06-04 13:04:16 +00:00
myconf.c feat(ha-config-bootstrap): implement --vcpus CLI, wire validation, remove vcpus from config (task 2.2) 2026-05-28 04:17:06 +00:00
opget.c fix(persist): zero nresvals_to_sched after free_name_val_list 2026-05-20 09:39:07 +00:00
opupd.c save works 2026-03-03 16:49:26 +08:00
persist.c feat(ha-repl-hardening): standby snapshot receive handler (task 3.5c) 2026-06-05 01:43:05 +00:00
queue.c feat: implement job state, queue state, and worker recovery in WAL replay 2026-05-08 08:19:20 +00:00
repl.c feat(ha-config-bootstrap): implement repl_wait_majority_ack with quorum formula and ack_op discrimination (task 7.3) 2026-05-28 13:57:24 +00:00
reply.c fix(persist): zero nresvals_to_sched after free_name_val_list 2026-05-20 09:39:07 +00:00
resources.c update controller code 2025-11-05 16:58:57 +08:00
sched.c add kiro skills 2026-05-21 03:41:57 +00:00
startup_validation.c feat(ha-heartbeat-liveness): add validate_heartbeat_config startup check (task 1.2) 2026-06-01 12:26:29 +00:00
task.c save works 2026-03-04 18:18:53 +08:00
worker.c feat(worker-join-refactor): implement apply_join_state, init_worker, rejoin_worker 2026-05-20 08:24:26 +00:00