feat(ha-single-leader-role): remove CTRL_PRIMARY_COMMITTING enum + remaining decls — compiler-enforced (task 5.2)
This commit is contained in:
parent
7f974e766b
commit
93dfc02717
10 changed files with 44 additions and 55 deletions
|
|
@ -755,7 +755,7 @@ static void *lifecycle_wait_thread(void *p)
|
|||
*
|
||||
* SHARED-SEQUENCE CONTRACT PIN (GREEN now, MUST STAY GREEN — not a behavioral
|
||||
* RED carrier). After task 2.2 BOTH roads to PRIMARY (the raft become-leader
|
||||
* callback and ha_repl_ack_received's quorum path) route through this same
|
||||
* callback and the legacy quorum-ack path) route through this same
|
||||
* ha_promote_to_primary sequence, which task 2.2 augments with the noop+gate
|
||||
* tail while KEEPING hook registration. This case is therefore a CONTRACT/
|
||||
* REGRESSION pin proving the shared promotion sequence registers the persist
|
||||
|
|
@ -809,8 +809,8 @@ static void test_promotion_registers_persist_hooks(void)
|
|||
|
||||
/* ── Case 4: NO WATCHDOG — promotion arms no delaymgr task (Req 1.5, 2.3).
|
||||
*
|
||||
* The shared promotion sequence must never arm a wall-clock watchdog (the
|
||||
* deleted committing_timeout_fn). Asserted via the delaymgr task-count seam:
|
||||
* The shared promotion sequence must never arm a wall-clock promotion watchdog
|
||||
* (deleted in task 4.x). Asserted via the delaymgr task-count seam:
|
||||
* the count is unchanged across ha_promote_to_primary.
|
||||
*
|
||||
* Status note (RED vs already-GREEN): the force-promotion watchdog is armed
|
||||
|
|
@ -820,8 +820,8 @@ static void test_promotion_registers_persist_hooks(void)
|
|||
* exercises — never armed a watchdog, so this case is ALREADY GREEN today and
|
||||
* stands as a regression-pin guaranteeing task 2.2's shared sequence does not
|
||||
* introduce one. The watchdog REMOVAL from raft_cb_become_leader is covered
|
||||
* at integration scope (task 4.x deletes committing_timeout_fn and the
|
||||
* test_ha_evaluate_committing committing-timeout cases). */
|
||||
* at integration scope (task 4.x deletes the promotion-watchdog arm and the
|
||||
* transitional-state evaluation cases). */
|
||||
static void test_promotion_arms_no_delaymgr_watchdog(void)
|
||||
{
|
||||
#ifdef XCE_TESTING
|
||||
|
|
@ -1140,11 +1140,11 @@ static void test_legacy_and_raft_promotion_are_symmetric(void)
|
|||
"legacy road must arm the own-term gate at noop_lsn (Req 1.4, 2.1) — "
|
||||
"identical to the raft road's shared tail");
|
||||
|
||||
/* Symmetry axis 4: NO committing-timeout watchdog armed (Req 1.5). */
|
||||
/* Symmetry axis 4: NO promotion watchdog armed (Req 1.5). */
|
||||
int after = delaymgr_task_count(&g_lc.delaymgr);
|
||||
TEST_ASSERT_EQUAL_INT_MESSAGE(before, after,
|
||||
"legacy road must arm NO delaymgr watchdog (Req 1.5) — symmetric with "
|
||||
"the raft road; the committing-timeout arm is deleted from this path");
|
||||
"the raft road; the promotion-watchdog arm is deleted from this path");
|
||||
|
||||
pthread_mutex_destroy(&ctx->lock);
|
||||
sem_destroy(&ctx->done);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue