Skip to content

NRG (2.11): Don't reset WAL on append entry response#5689

Merged
derekcollison merged 1 commit intomainfrom
neil/nrgappendresp
Jul 23, 2024
Merged

NRG (2.11): Don't reset WAL on append entry response#5689
derekcollison merged 1 commit intomainfrom
neil/nrgappendresp

Conversation

@neilalexander
Copy link
Copy Markdown
Member

Log consistency should only be enforced when handling append entries, not in other types of RPC. In this case, the higher term could cause us to blow away our entire log if a node with a higher term but a more out-of-date log comes along as leader without doing any other checks, and that may force us to vote for another node that's behind as a result.

Signed-off-by: Neil Twigg neil@nats.io

Log consistency should only be enforced when handling append entries,
not in other types of RPC. In this case, the higher term could cause
us to blow away our entire log if a node with a higher term but a more
out-of-date log comes along as leader.

Signed-off-by: Neil Twigg <neil@nats.io>
@neilalexander neilalexander requested a review from a team as a code owner July 23, 2024 17:18
@neilalexander neilalexander changed the title NRG: Don't reset WAL on append entry response NRG (2.11): Don't reset WAL on append entry response Jul 23, 2024
Copy link
Copy Markdown
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM

@derekcollison derekcollison merged commit 4b65ab5 into main Jul 23, 2024
@derekcollison derekcollison deleted the neil/nrgappendresp branch July 23, 2024 19:36
neilalexander added a commit that referenced this pull request Nov 25, 2024
Includes the following:

- #5661
- #5666
- #5671
- #5344
- #5684
- #5689
- #5691
- #5714
- #5717
- #5707
- #5792
- #5912
- #5957
- #5700
- #5975
- #5991
- #5987
- #6027
- #6038
- #6053
- #5848
- #6055
- #6056
- #6060
- #6061
- #6072
- #5832
- #6073
- #6107

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