Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport stable/8.0] fix(raft): follower resets pending snapshot after rejecting install request #10210

Merged
merged 11 commits into from
Aug 29, 2022

Conversation

deepthidevaki
Copy link
Contributor

Description

Backport #10183

closes #10180 #10202

deepthidevaki and others added 11 commits August 29, 2022 15:01
When comparing compacted logs, not all entries exist in all logs. So compare only the entries that exist.

(cherry picked from commit 773dfa2)
When follower responds with any error, leader restarts send the snapshot from the initial chunk. When the follower has not resets its state, then the follower is not expecting the initial chunk. As a result, the follower reject the requests and this will continue endlessly.

(cherry picked from commit 9aba732)
There were some cases where the log is not reset and leads to scenarios where a follower is not able to replicate new events. This case is explained in #10183 (comment)

(cherry picked from commit 4c82bd9)
(cherry picked from commit 1362765)
Co-authored-by: Ole Schönburg <ole.schoenburg@gmail.com>
(cherry picked from commit 69df0fa)
@oleschoenburg
Copy link
Member

@deepthidevaki Anything to look out for or is this just a pro forma review?

@deepthidevaki
Copy link
Contributor Author

@oleschoenburg Nothing to look for. There was minor merge conflict that failed backport action.

Copy link
Member

@oleschoenburg oleschoenburg left a comment

Choose a reason for hiding this comment

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

bors r+

@zeebe-bors-camunda
Copy link
Contributor

@zeebe-bors-camunda zeebe-bors-camunda bot merged commit f687fae into stable/8.0 Aug 29, 2022
@zeebe-bors-camunda zeebe-bors-camunda bot deleted the backport-10183-to-stable/8.0 branch August 29, 2022 14:13
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.

None yet

2 participants