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

fix: skip snapshot insertion #368

Merged
merged 1 commit into from
May 23, 2024
Merged

fix: skip snapshot insertion #368

merged 1 commit into from
May 23, 2024

Conversation

akiradeveloper
Copy link
Owner

It is possible that the same snapshot is sent from the leader. In this case, the follower can skip the insertion.

I don't think this is a logical bug because leader can send a newer snapshot after it creates one.
However, rejecting replication impedes the consensus process of the cluster which is harmful.

It is possible that the same snapshot is sent from the leader.
In this case, the follower can skip the insertion.

I don't think this is a logical bug because leader can send
a newer snapshot after it creates one.
However, rejecting replication impedes the consensus process of the
cluster which is harmful.
@akiradeveloper akiradeveloper self-assigned this May 23, 2024
@akiradeveloper akiradeveloper merged commit 4c8d8c0 into master May 23, 2024
1 of 2 checks passed
@akiradeveloper akiradeveloper deleted the fix-snapshot-insert branch May 23, 2024 22:07
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