-
Notifications
You must be signed in to change notification settings - Fork 207
feat: Delete Progress.PendingSnapshot
and improve snapshot handling
#243
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
base: main
Are you sure you want to change the base?
Conversation
Hi @soma00333. Thanks for your PR. I'm waiting for a etcd-io member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
@ahrtr |
cc @joshuazh-x |
Thank you for checking this |
/retest |
@soma00333: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
48b6b6d
to
2e13398
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: soma00333 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: soma00333 <[email protected]>
2e13398
to
800cd61
Compare
Description
This PR addresses #124 by removing the unused
Progress.PendingSnapshot
field and improving snapshot handling in the Raft library.What does this PR do?
Removes
Progress.PendingSnapshot
PendingSnapshot
field from theProgress
structImproves
ReportSnapshot()
APIappliedSnapshotIndex
parameter to track the actual applied snapshot indexnode.go
andrawnode.go
implementationsSnapshotFinish
was a no-opEnhances
MsgSnapStatus
handlingapplied_snapshot_index
field to the protobuf messageOnSnapshotApplied()
method for cleaner state updatesOptimizes state transitions
StateReplicate
when follower is caught upStateProbe
phase when possibleWhy is this needed?
The
PendingSnapshot
field was not being used effectively and added unnecessary complexity to the codebase. This change:Breaking Changes
ReportSnapshot()
now requires anappliedSnapshotIndex
parameterMsgSnapStatus
message format has changedTesting
AppliedSnapshotIndex
is 0)Related Issues