myxce/src/controller
Rongsong Shen 0c9c720b03 feat(ha-config-bootstrap): complete quorum election with mutex safety (task 4.3)
- am_i_primary_quorum(): per-peer pthreads, connect_ssl_raw + OP_requestVote
- pthread_mutex_t lock on ha_elect_ctx_t guards votes_granted/n_replied/max_resp
- done_posted guard in ha_elect_evaluate_and_signal prevents double sem_post
- Replace am_i_primary() with am_i_primary_quorum() in myapp.c
- Delete ha_check_priority_stepdown and ha_check_heartbeat_nocluster
- INFO logs: election outcome (Req 10.1), FSM transitions (Req 10.5)
- 24 election tests + 24 startup tests, 0 failures
2026-05-28 08:28:35 +00:00
..
include feat(ha-config-bootstrap): extract cluster_open_listener, reorder startup before election (task 3.2) 2026-05-28 05:03:50 +00:00
testsuite feat(ha-config-bootstrap): implement vote handlers and term persistence (task 4.2) 2026-05-28 07:32:48 +00:00
apiserver.c add kiro skills 2026-05-21 03:41:57 +00:00
CLAUDE.md Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
cluster.c feat(ha-config-bootstrap): implement dispatch gate (task 3.3) 2026-05-28 05:50:42 +00:00
config_repl.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
config_repl.h feat(config-repl): wire handle_upgrade_config() via raw packet interception 2026-05-21 13:51:52 +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 feat(ha-config-bootstrap): complete quorum election with mutex safety (task 4.3) 2026-05-28 08:28:35 +00:00
ha.h feat(ha-config-bootstrap): complete quorum election with mutex safety (task 4.3) 2026-05-28 08:28:35 +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 add kiro skills 2026-05-21 03:41:57 +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 test(ha-config-bootstrap): RED phase tests for quorum election logic (task 4.1) 2026-05-28 07:10:02 +00:00
misc.c save works 2026-03-05 16:03:37 +08:00
myapp.c feat(ha-config-bootstrap): complete quorum election with mutex safety (task 4.3) 2026-05-28 08:28:35 +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 add kiro skills 2026-05-21 03:41:57 +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: P2-5 repl_start/complete_catchup, repl_needs_snapshot — standby catch-up state 2026-05-07 18:14:12 +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-config-bootstrap): implement --vcpus CLI, wire validation, remove vcpus from config (task 2.2) 2026-05-28 04:17:06 +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