-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
externalize snapshot catchup entries to etcd flag #15033
Conversation
@ahrtr @lavacat Could you please take a look and provide guidance? I am not sure about the answer of the above two questions. /cc @serathius |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but please update changelog.
I think this setting can be qualified as stable feature. So, it's ok to drop experimental. When it was added, there was a comment about making it tunable #2403 (comment) |
YES, a new flag usually is experimental. See features.md#experimental. It isn't super clear what's the exact impact for now. So keeping it experimental is a better choice.
I would expect NO for now. For single node cluster for edge case, I even want to set a very small value, e.g. 10. But we need to provide general guidance on this, usually it should be |
5553b9a
to
466a66c
Compare
24313cc
to
98a6aff
Compare
Codecov Report
@@ Coverage Diff @@
## main #15033 +/- ##
==========================================
- Coverage 74.85% 74.58% -0.27%
==========================================
Files 415 415
Lines 34287 34288 +1
==========================================
- Hits 25666 25575 -91
- Misses 6997 7072 +75
- Partials 1624 1641 +17
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thank you @chaochn47
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
Shell we have a test that checks whether etcd instance works in stable way when the setting is unreasonably small (e.g. 1) ?
-
Do we disallow setting this to 0 or negative ?
Negative value is definitely NOT possible, because its type is
Agreed. @chaochn47 please add test cases to intentionally to set a small value (e.g 1, 10). Please also resolve comment #15033 (comment), and also rebase this PR. |
8450f72
to
7f56ecd
Compare
Signed-off-by: Chao Chen <chaochn@amazon.com>
7f56ecd
to
2c46b2b
Compare
Thanks for the review and suggestion!! Added a test Is it sufficient as an experimental flag? |
LGTM, thank you. Merging... |
@chaochn47 hi, will this change be picked to v3.5 too? |
Hi @halegreen I am afraid that this experimental flag will not be back-ported to 3.5 which is meant to be stable release. On the other way, 3.5 node cannot send snapshot to 3.6 node immediately without current PR. To unblock your test, as an alternative pointed out in #14807, you may want to add a 3.6 node to a 3.5 cluster to trigger snapshot transfer easily. /cc @ahrtr @serathius for thoughts |
No plan to backport this PR to 3.5. Please see #15013 (comment) |
Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.
Motivation
Questions
experimental
.Related #14819 and #15013 (comment)