-
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
e2e: v2 backup test #5380
e2e: v2 backup test #5380
Conversation
if err != nil { | ||
t.Fatal(err) | ||
} | ||
|
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.
defer os.RemoveAll(backupDir)
?
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 fixed. Thanks!
So these are the commands that are run by this test.
Confirmed that this command panics if I run this manually, without @xiang90's fix. But somehow when we run on e2e, it's not passing the message type Do you see anything that I am doing wrong here? Thanks! |
@@ -132,6 +132,7 @@ type etcdProcessConfig struct { | |||
} | |||
|
|||
type etcdProcessClusterConfig struct { | |||
dataDirPath string // for single-node cluster |
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 this be a prefix instead of a path so it can support multiple nodes?
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.
Right. Will fix.
ah, when it starts, it deletes the data dir. That was why it wasn't panic-ing. Will fix that too. |
@heyitsanthony All addressed. PTAL. Thanks. |
args []string | ||
|
||
dataDirPath string | ||
usePreviousDataDir bool |
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.
keepDataDir
?
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.
fixed.
lgtm |
Thanks merging after all greens. Found some other errors. |
Fix #5367.