Skip to content

supervisor: a promoted replica resets the role's password before it serves as primary - #23

Merged
jaredLunde merged 1 commit into
mainfrom
w-pg-promote-reset
Nov 28, 2026
Merged

jaredLunde merged 1 commit into
mainfrom
w-pg-promote-reset

Conversation

@jaredLunde

Copy link
Copy Markdown
Contributor

start::plan(StartKind) with Verus ensures over cold primary, replica, successor and promotion; the promote RPC runs the reset (ALTER ROLE from MMDS) before answering ok; retry converges. Mutant mut_promotion_skips_reset red in Verus (5 verified, 1 error); the clean build verifies 6 + 2159.

🤖 Generated with Claude Code

…erves as primary

start::plan takes a StartKind (Cold, Replica, Successor, Promotion); the promote RPC answers ok only after the reset, and a retry
after a failed reset converges (an already-promoted node skips pg_ctl promote). Verus ensures over every kind; mut_promotion_skips_reset red.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@jaredLunde
jaredLunde merged commit 72fc3ba into main Nov 28, 2026
1 check passed
@jaredLunde
jaredLunde deleted the w-pg-promote-reset branch November 28, 2026 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant