feat(ha-wal-replication): repl_broadcast TCP send (task 1.1)
Replace no-send stub with real WAL entry transmission via xce_wal_batch_req_raw. For each non-catch-up registered standby, serialize the entry header+payload into a wal_catchup_entry_t and enqueue. Keep the MAX_PENDING_ACKS eviction guard. 5 new tests: no-standbys, one-standby-send, skip-catch-up, evict-overloaded, send-failure-continues. Controller suite green. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
cdd446fc17
commit
18e351ee1b
7 changed files with 780 additions and 91 deletions
|
|
@ -782,3 +782,68 @@
|
|||
| 17:45 | Fixed bug-337 (freshness→last_activity), bug-338 (same-candidate re-grant + myapp self check), bug-339 (raft_init voted_for_term restore); full build+tests green; reopened ha-repl-hardening tasks 7.1-7.7; marked worker-join-refactor + resval-id-decoupling implemented | ha.c ha.h myapp.c raft.c test_raft.c test_ha_vote_gate.c tasks.md spec.json | all tests pass, 0 FAIL | ~80k |
|
||||
| 17:32 | Edited ../../../../../claude/.claude/projects/-home-rshen-projects-xce-xce/memory/project_ha_bootstrap_progress.md | 3→3 lines | ~138 |
|
||||
| 17:32 | Session end: 13 writes across 7 files (test_raft.c, raft.c, ha.c, ha.h, test_ha_vote_gate.c) | 2 reads | ~37627 tok |
|
||||
| 18:36 | Edited src/schema/controller.capnp | added error handling | ~45 |
|
||||
| 18:37 | Edited src/include/typemap.h | added error handling | ~79 |
|
||||
| 18:37 | Edited src/include/typemap.h | 2→2 lines | ~29 |
|
||||
| 18:37 | Edited src/include/typemap.h | expanded (+15 lines) | ~476 |
|
||||
| 18:38 | Edited src/include/request.h | added error handling | ~651 |
|
||||
| 18:39 | Edited src/lib/request.c | added 4 condition(s) | ~212 |
|
||||
| 18:39 | Edited src/lib/request.c | added error handling | ~695 |
|
||||
| 18:39 | Edited src/lib/request.c | added error handling | ~343 |
|
||||
| 18:40 | Edited src/lib/request.c | added error handling | ~1646 |
|
||||
| 18:41 | Created src/lib/testsuite/test_wal_wire.c | — | ~2162 |
|
||||
| 18:43 | Edited src/lib/request.c | inline fix | ~18 |
|
||||
| 18:43 | Edited src/lib/request.c | inline fix | ~22 |
|
||||
| 01:45 | xce-build lib: fixed &ep->peer pointer-type compile errors, rebuilt, lib tests pass 1/1 | src/lib/request.c | success | ~25k |
|
||||
| 18:46 | Edited src/controller/config_repl.c | modified XCE_TESTING() | ~451 |
|
||||
| 18:46 | Edited src/controller/config_repl.c | modified XCE_TESTING() | ~320 |
|
||||
| 18:46 | Edited src/controller/config_repl.c | modified if() | ~222 |
|
||||
| 18:46 | Edited src/controller/config_repl.c | inline fix | ~18 |
|
||||
| 18:47 | Edited src/controller/cluster.c | 7→7 lines | ~111 |
|
||||
| 18:47 | Edited src/controller/ha.c | modified ha_apply_single_entry() | ~185 |
|
||||
| 18:49 | Edited src/controller/testsuite/test_ha_role.c | modified XCE_TESTING() | ~1368 |
|
||||
| 18:49 | Edited src/controller/testsuite/test_ha_role.c | 3→5 lines | ~87 |
|
||||
| 18:49 | Edited src/controller/ha.c | added error handling | ~266 |
|
||||
| 18:49 | Edited src/controller/ha.c | modified 1() | ~163 |
|
||||
| 18:51 | Edited src/controller/ha.c | added 1 condition(s) | ~294 |
|
||||
| 18:51 | Edited src/controller/ha.c | added 1 condition(s) | ~243 |
|
||||
| 01:55 | /xce-build controller: clean build + controller unit test | src/controller | OK 1/1 (163.19s) | ~2k |
|
||||
| 18:58 | Created ../../../../../../tmp/e2e-task-7-7.sh | — | ~1171 |
|
||||
| 19:01 | Edited src/controller/ha.c | modified frees() | ~187 |
|
||||
|
||||
## Session: 2026-06-10 19:31
|
||||
|
||||
| Time | Action | File(s) | Outcome | ~Tokens |
|
||||
|------|--------|---------|---------|--------|
|
||||
|
||||
## Session: 2026-06-10 19:53
|
||||
|
||||
| Time | Action | File(s) | Outcome | ~Tokens |
|
||||
|------|--------|---------|---------|--------|
|
||||
|
||||
## Session: 2026-06-10 20:00
|
||||
|
||||
| Time | Action | File(s) | Outcome | ~Tokens |
|
||||
|------|--------|---------|---------|--------|
|
||||
|
||||
## Session: 2026-06-10 20:04
|
||||
|
||||
| Time | Action | File(s) | Outcome | ~Tokens |
|
||||
|------|--------|---------|---------|--------|
|
||||
|
||||
## Session: 2026-06-10 20:05
|
||||
|
||||
| Time | Action | File(s) | Outcome | ~Tokens |
|
||||
|------|--------|---------|---------|--------|
|
||||
| 02:30 | ha-repl-hardening 7.1-7.7 complete: payload data plane (raw wire format + decode + consumer wiring), convergence threshold n_peers/2, array re-zero, snap.part chunk-0 discard, fresh checkpoint; E2E found+fixed bug-352 (UAF vote_reply pkt ownership); spec phase→validation | schema/controller.capnp typemap.h request.h/c config_repl.c cluster.c ha.c ha.h test_wal_wire.c test_ha_role.c tasks.md | 5 unit tests + 2 E2E passes, 0 ASAN | ~180k |
|
||||
| 20:46 | Edited src/controller/testsuite/test_ha_connection_reuse.c | 6→8 lines | ~64 |
|
||||
| 20:46 | Edited src/controller/testsuite/test_ha_connection_reuse.c | 6→8 lines | ~63 |
|
||||
| 20:54 | Edited src/controller/cluster.c | added 1 condition(s) | ~88 |
|
||||
| 20:54 | Edited src/controller/cluster.c | added 1 condition(s) | ~92 |
|
||||
| 20:55 | Edited src/controller/config_repl.c | added 1 condition(s) | ~102 |
|
||||
| 21:00 | Edited src/controller/ha.c | modified is() | ~102 |
|
||||
| 21:01 | Edited src/controller/ha.c | 4→5 lines | ~32 |
|
||||
| 21:02 | Edited src/controller/ha.h | modified XCE_TESTING() | ~178 |
|
||||
| 04:07 | Closed 6 specs: ha-repl-hardening→implemented, ha-peer-connection-reuse (ASAN leak fix), ha-heartbeat-liveness (last_activity on WAL/snap/config handlers), raft-library (handle_request_vote→XCE_TESTING), ha-config-bootstrap→implemented (all tasks done, policy gaps documented). 9/9 specs: 8 implemented, 1 remaining (scheduler-controller-msg-gap, bugs 335/336) | ha.c ha.h cluster.c config_repl.c test_ha_connection_reuse.c spec.json x6 | controller suite green | ~60k |
|
||||
| 21:07 | Session end: 8 writes across 5 files (test_ha_connection_reuse.c, cluster.c, config_repl.c, ha.c, ha.h) | 8 reads | ~67113 tok |
|
||||
| 21:11 | Session end: 8 writes across 5 files (test_ha_connection_reuse.c, cluster.c, config_repl.c, ha.c, ha.h) | 8 reads | ~67113 tok |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue