feat(ha-heartbeat-liveness): verify ctrlhello integration and RDHUP cancel (task 3.2)

Verification task: confirmed config_repl.c handle_ctrlhello calls both
ha_on_heartbeat_received and ha_arm_heartbeat_timeout_vtask (delaymgr poll).
Confirmed ha_on_primary_ctrl_fd_rdhup leads with ha_disarm (Req 5.4).
No pthread_create in heartbeat arm path (Req 1.6). Add thread-count test.
This commit is contained in:
Rongsong Shen 2026-06-01 15:37:35 +00:00
parent d937c1c1bb
commit 12216f1165
2 changed files with 60 additions and 1 deletions

View file

@ -48,7 +48,7 @@
- _Depends: 2.1_
- _Boundary: cluster.c (opcode dispatch)_
- [ ] 3.2 Verify config_repl.c ctrlhello integration and EPOLLRDHUP cancellation path
- [x] 3.2 Verify config_repl.c ctrlhello integration and EPOLLRDHUP cancellation path
- Confirm `ha_arm_heartbeat_timeout_vtask` call in `handle_ctrlhello` (config_repl.c:1380) still correctly arms the delaymgr poll (not a thread)
- Confirm `ha_on_heartbeat_received` call at config_repl.c:1379 writes `last_activity` (new impl)
- Confirm `ha_on_primary_ctrl_fd_rdhup` now calls `ha_disarm_heartbeat_timeout_vtask` as its first step (Req 5.4)