-
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 restore to create v2 snapshot from v3 #16376
Conversation
tests/e2e/ctl_v3_snapshot_test.go
Outdated
for i := range epc.Procs[0].Config().Args { | ||
if epc.Procs[0].Config().Args[i] == "--data-dir" { | ||
epc.Procs[0].Config().Args[i+1] = newDataDir | ||
} | ||
} | ||
|
||
//Verify that initial snapshot is created by the restore operation | ||
verifySnapshot(t, epc) |
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.
Can you also add a verification that the membership data read from the v2 snapshot is expected?
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.
updated.
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 with a nit.
thx
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.
Overall lgtm, nice work @geetasg 👍🏻
Signed-off-by: Geeta Gharpure <[email protected]>
for i := range epc.Procs[0].Config().Args { | ||
if epc.Procs[0].Config().Args[i] == "--data-dir" { | ||
epc.Procs[0].Config().Args[i+1] = newDataDir | ||
} | ||
} | ||
|
||
// Verify that initial snapshot is created by the restore operation | ||
verifySnapshotMembers(t, epc, membersBefore) |
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 cluster in this test case has only one member, please consider to add a case verify that the members read from the snapshot are also expected in multiple members cluster in a separate PR.
Related to #12913
Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.