myxce/src/controller
Rongsong Shen 1f97aee1a3 test: P3-1..P3-5 hardening tests — failover, redirect, WAL, GC, throughput baseline
13 new Unity tests in test_p3_hardening.c covering:
- P3-1: promote/demote cycle verifies role+term monotonicity and
        hooks_registered reset; heartbeat timeout sets failover_requested
- P3-2: ha_should_redirect/ha_no_primary_known corner cases for
        PRIMARY, STANDBY-no-primary, STANDBY-with-primary
- P3-3: torn-write recovery after checkpoint (mixed WAL types, exact
        offset truncation); CRC corruption stops replay in mixed-type WAL
- P3-4: 1000 async WAL writes complete in < 5 s (throughput floor)
- P3-5: GC retention predicates — running retained, expired EXIT
        cleaned, TRANSIENT timeout, expired UNAVAIL worker cleaned,
        recent DONE retained

No new implementation code. All called functions existed from P0-P2.
2026-05-07 23:39:11 +00:00
..
include feat: implement persist_recover with snapshot load and WAL replay (P0-4) 2026-05-07 11:41:33 +00:00
testsuite test: P3-1..P3-5 hardening tests — failover, redirect, WAL, GC, throughput baseline 2026-05-07 23:39:11 +00:00
apiserver.c fix typo caused dead lock 2026-05-07 09:07:36 +00:00
CLAUDE.md Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
cluster.c feat: wire ha_state_t into cluster_t + HA startup/shutdown lifecycle (P1-5) 2026-05-07 14:55:48 +00:00
dataex.c save works 2026-03-05 16:03:37 +08:00
ha.c feat: ha_should_redirect + join.c HA redirect/nomaster guard (P1-6) 2026-05-07 15:11:53 +00:00
ha.h feat: ha_should_redirect + join.c HA redirect/nomaster guard (P1-6) 2026-05-07 15:11:53 +00:00
job.c feat: JOB_STAT_TRANSIENT, job_should_retain, worker_should_retain, dead_since (P0-5a, P0-8, P0-13) 2026-05-07 12:52:07 +00:00
join.c feat: ha_should_redirect + join.c HA redirect/nomaster guard (P1-6) 2026-05-07 15:11:53 +00:00
main.c feat: wire persist_init/recover/start/stop into cluster lifecycle (P0-F) 2026-05-07 13:07:47 +00:00
meson.build test: P3-1..P3-5 hardening tests — failover, redirect, WAL, GC, throughput baseline 2026-05-07 23:39:11 +00:00
misc.c save works 2026-03-05 16:03:37 +08:00
myapp.c reformat code and job array 2025-11-07 16:14:27 +08:00
myconf.c save works 2026-03-03 16:49:26 +08:00
opget.c save works 2026-03-04 18:18:53 +08:00
opupd.c save works 2026-03-03 16:49:26 +08:00
persist.c feat: P2-4 wire repl_broadcast into persist_wal_async/sync_append; last_replicated_crc 2026-05-07 17:54:48 +00:00
queue.c save works 2026-03-04 18:18:53 +08: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 save works 2026-03-03 16:49:26 +08:00
resources.c update controller code 2025-11-05 16:58:57 +08:00
sched.c save works 2026-03-04 18:18:53 +08:00
task.c save works 2026-03-04 18:18:53 +08:00
worker.c feat: JOB_STAT_TRANSIENT, job_should_retain, worker_should_retain, dead_since (P0-5a, P0-8, P0-13) 2026-05-07 12:52:07 +00:00