Skip to content

Comments

NRG: Leader resurrects removed peers on restarts#7602

Merged
neilalexander merged 1 commit intomainfrom
raft-leader-resurrects-peers
Dec 2, 2025
Merged

NRG: Leader resurrects removed peers on restarts#7602
neilalexander merged 1 commit intomainfrom
raft-leader-resurrects-peers

Conversation

@sciascid
Copy link
Contributor

@sciascid sciascid commented Dec 2, 2025

When removing a peer through ProposePeerRemove, the leader would not write its peer state file. So prior to this patch, it was possible for a leader to restart and populate peer and quorum information from an old peerstate file. Effectively forgetting membership changes that were committed before a restart.

Signed-off-by: Daniele Sciascia daniele@nats.io

When removing a peer through ProposePeerRemove, the leader would
not write its peer state file. So prior to this patch, it was
possible for a leader to restart and populate peer and quorum
information from an old peerstate file. Effectively forgetting
membership changes that were committed before a restart.

Signed-off-by: Daniele Sciascia <daniele@nats.io>
@sciascid sciascid requested a review from a team as a code owner December 2, 2025 14:40
Copy link
Member

@neilalexander neilalexander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@neilalexander neilalexander merged commit 08c634a into main Dec 2, 2025
48 checks passed
@neilalexander neilalexander deleted the raft-leader-resurrects-peers branch December 2, 2025 16:31
neilalexander added a commit that referenced this pull request Dec 5, 2025
Includes the following:

- #7581
- #7585
- #7586
- #7565
- #7588
- #7593
- #7589
- #7594
- #7595
- #7596
- #7597
- #7598
- #7600
- #7601
- #7602
- #7604
- #7605
- #7607
- #7609
- #7610
- #7616
- #7614

Signed-off-by: Neil Twigg <neil@nats.io>
neilalexander added a commit that referenced this pull request Jan 6, 2026
Includes the following:

- #7565
- #7589
- #7600
- #7602
- #7609
- #7610
- #7632
- #7649
- #7642
- #7658
- #7659
- #7661
- #7662
- #7663
- #7668
- #7683
- #7685
- #7686
- #7678
- #7691
- #7696
- #7698
- #7699
- #7700

Signed-off-by: Neil Twigg <neil@nats.io>
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.

2 participants