Skip to content

fix zero address change#9680

Draft
shiva-istari wants to merge 1 commit intomainfrom
shiva/fqdn
Draft

fix zero address change#9680
shiva-istari wants to merge 1 commit intomainfrom
shiva/fqdn

Conversation

@shiva-istari
Copy link
Copy Markdown
Contributor

Description
When a Zero node is bootstrapped, its --my address is permanently recorded in the Raft WAL via a ConfChangeAddNode entry. On every subsequent restart, WAL replay restores that original address into MembershipState, overwriting the current --my flag. This causes Alphas to connect to a stale address (e.g., localhost:5080 from an initial bulk load) even when Zero is restarted with a production FQDN.
This PR introduces a leader-driven reconciliation loop that detects mismatches between the live --my address and what is stored in MembershipState, and proposes a ConfChangeUpdateNode through Raft to durably correct the address across all nodes. An in-memory override in the Connect RPC ensures Alphas receive the correct address immediately, even before the Raft entry is committed.

@github-actions github-actions bot added area/testing Testing related issues go Pull requests that update Go code labels Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/testing Testing related issues go Pull requests that update Go code

Development

Successfully merging this pull request may close these issues.

1 participant