-
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
Update etcdutl migrate command: load wal records from the latest snapshot #19128
base: main
Are you sure you want to change the base?
Conversation
6fe83fd
to
be38b22
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files
... and 24 files with indirect coverage changes @@ Coverage Diff @@
## main #19128 +/- ##
==========================================
+ Coverage 68.77% 68.85% +0.08%
==========================================
Files 420 420
Lines 35640 35656 +16
==========================================
+ Hits 24510 24550 +40
+ Misses 9704 9684 -20
+ Partials 1426 1422 -4 Continue to review full report in Codecov by Sentry.
|
/retest |
5386eef
to
44cb583
Compare
Changes in server/etcdserver/apply/apply.go
[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 |
44cb583
to
7f7ebde
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. |
@@ -424,8 +423,9 @@ func (a *applierMembership) ClusterVersionSet(r *membershippb.ClusterVersionSetR | |||
zap.String("new-cluster-version", newVersion.String()), | |||
) | |||
} | |||
a.snapshotServer.ForceSnapshot() |
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 case TestV2DeprecationSnapshotMatches
failed caused by this change.
…shot Signed-off-by: Benjamin Wang <[email protected]>
When downgrading or offline migration, etcd read the maximum version from the WAL files, so as to ensure the operation is allowed. It also reads the verson from `ClusterVersionSet` request, so we should create a snapshot when cluster version chanages, so as not to block the downgrade or migration operations. Signed-off-by: Benjamin Wang <[email protected]>
7f7ebde
to
b99b962
Compare
Resolve #17227
cc @serathius @ivanvc @jmhbnz @fuweid @siyuanfoundation
Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.