-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
etcdserver: separate "raft log compact" from snapshot #18372
etcdserver: separate "raft log compact" from snapshot #18372
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: clement2026 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 @clement2026. 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. |
b758e6b
to
5b4a4f8
Compare
8681276
to
a6ea774
Compare
Signed-off-by: Clement <[email protected]>
Signed-off-by: Clement <[email protected]>
a6ea774
to
55fbbfa
Compare
How do you guys usually find the failing test case in the logs? I tried the following keywords but no luck this time, any tips?
|
Hi @clement2026, search for |
Thanks a lot! The all-caps ‘FAIL’ is super helpful. |
PR needs rebase. 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. |
Part of #17098. This PR separates "raft log compact" from snapshot.
Changes
CompactRaftLogEveryNApplies
to control how often raft log is compactedCompactRaftLogEveryNApplies
tunable.TestV3WatchRestoreSnapshotUnsync
by settingCompactRaftLogEveryNApplies
to1
, ensuring compaction occurs after each snapshot.Need Help
This PR also breaks some e2e test cases:
TestRecoverSnapshotBackend
TestMixVersionsSnapshotByMockingPartition
because they expect a compaction right after the snapshot to ensure a snapshot is sent to their followers.
I haven’t figured out a fix yet, other than making
CompactRaftLogEveryNApplies
a command-line argument, but that doesn’t seem ideal.To Do
CompactRaftLogEveryNApplies
: 1, 10, 100, 1000, and choose the best on as default value.