-
Notifications
You must be signed in to change notification settings - Fork 170
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
feat: Delete Progress.PendingSnapshot
and improve snapshot handling
#243
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: soma00333 <[email protected]>
[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 |
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. |
Summary
This PR addresses issue #124 by cleaning up and improving snapshot handling in the Raft library. The main objectives include removing the
PendingSnapshot
, improving the handling ofReportSnapshot()
andMsgSnapStatus
, and cleaning up related state transitions to enhance clarity and robustness in the Raft snapshot management logic.Change
Removal of PendingSnapshot
Progress.PendingSnapshot
, which is no longer necessary after changes in #110.Enhancements to
ReportSnapshot()
andMsgSnapStatus
ReportSnapshot()
andMsgSnapStatus
to accept the index of the applied snapshot.StateReplicat
e when applicable.Additional Improvements
Breaking Changes
Public API Changes
ReportSnapshot()
andMsgSnapStatus
now require the applied snapshot’s index as a parameter.References
How I tested