-
Notifications
You must be signed in to change notification settings - Fork 10.2k
[WIP] Bootstrap etcd from consistent_index #20981
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
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahrtr The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
f8a9ffa to
245f340
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files
... and 33 files with indirect coverage changes @@ Coverage Diff @@
## main #20981 +/- ##
==========================================
+ Coverage 68.56% 69.12% +0.56%
==========================================
Files 422 422
Lines 34841 34783 -58
==========================================
+ Hits 23889 24045 +156
+ Misses 9537 9343 -194
+ Partials 1415 1395 -20 Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
245f340 to
8a46eba
Compare
| // The returned WAL is ready to read and the first record will be the one | ||
| // after the given consistent-index. The WAL cannot be appended to before | ||
| // reading out all of its previous records. | ||
| func Open(lg *zap.Logger, dirpath string, consistentIndex uint64) (*WAL, error) { |
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.
The final change will be large and hard review, please plan for smaller steps so we can merge early.
For example this change of changing Open(lg, dirpath, snap) to Open(lg, dirpath, consistentIndex) seems like a correct independent change.
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.
I will try to make the workflows green first. Afterwards, I will think about how to break down the PR, to make the review easier.
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.
Sounds good, please consider marking the PR as draft until it's ready for review. You can still run tests via retest command.
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.
marking the PR as draft
Some workflows will be ignored in draft mode.
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.
Just added prefix [WIP] to title of the PR
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.
Works for me. Thanks!
8a46eba to
15eca4f
Compare
|
need to revisit test cases below in next step,
|
Signed-off-by: Benjamin Wang <[email protected]>
15eca4f to
e644406
Compare
|
@ahrtr: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
Link to #20187
Still need to do some performance comparison (bootstrap time)
Note that this PR can also workaround #20967. Once users run into the issue, they just need to create a single-member cluster first (with
--force-new-cluster), and add other members later. cc @thechristschn