myxce/src
Rongsong Shen e85100d761 test(ha-peer-connection-reuse): complete tasks 7.1, 7.2, 7.3 — all validation done
Task 7.1 (unit tests) was already complete with 8 tests in
test_ha_connection_reuse.c. Added two new tests:

Task 7.2 — test_follower_passive_no_outbound_connect (Req 2.1, 2.4):
  Verifies raft_cb_become_follower sets role=CTRL_STANDBY and nulls all
  votes[i].ep. The old fetch_config_from_primary path is gone; standbys
  never initiate outbound connects after election loss.

Task 7.3 — test_promoted_ep_repl_ack_promotes_to_primary (Req 5.2, 5.4):
  Injects two OPCode_replCatchUpDone packets via peer_ctrl_msg_handler in
  CTRL_PRIMARY_COMMITTING with n_peers=4 (5-node cluster, quorum=2 ACKs).
  Verifies repl_ack_count reaches 2 and role transitions to CTRL_PRIMARY.
  Added vote_ep_ctx_set_cluster_for_test() seam so vctx->c is non-NULL
  when ha_repl_ack_received fires ha_promote_to_primary.

All 62 controller tests pass; ASAN clean.
spec: .kiro/specs/ha-peer-connection-reuse/tasks.md all tasks [x]
2026-06-01 07:53:02 +00:00
..
autoscaler support shared libxce(for api server) 2026-01-19 11:02:49 +08:00
controller test(ha-peer-connection-reuse): complete tasks 7.1, 7.2, 7.3 — all validation done 2026-06-01 07:53:02 +00:00
docs claude skills 2026-05-29 15:00:06 +08:00
frontend fix(frontend): remove conf.vcpus from cClusterConfToClusterInfo — field moved to myconf_t 2026-05-29 10:18:01 +00:00
include fix(ha): fix config replication to standbys; add replConfigPush handler 2026-06-01 05:56:16 +00:00
lib fix(ha): fix config replication to standbys; add replConfigPush handler 2026-06-01 05:56:16 +00:00
nixSupport Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
scheduler enhance xce-build skill 2026-05-30 08:13:59 +08:00
schema fix(ha-bootstrap): wire OP_requestVote RPC through standard Request envelope 2026-05-29 17:01:59 +00:00
tools fix(ha): wire raft trace to DEBUG3; drop NOP on promoted ep; fix --vcpus in deploy script 2026-06-01 05:20:13 +00:00
worker enhance xce-build skill 2026-05-30 08:13:59 +08:00
flake.lock docs: mark Phase 6 complete in phase6-scheduler-integration-plan 2026-04-30 07:17:32 +00:00
flake.nix save works 2026-03-04 18:18:53 +08:00
meson.build Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
meson.options Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00