-
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
snapshot save command does not timeout #10298
Comments
Sure, we can set the context timeout? Lines 60 to 63 in 7f450bf
|
@jingyih Probably set a different default timeout (keep current infinity or something like 10minutes ) for snapshot command. When users specify the command timeout explicitly, overwrite it. |
Ah, maybe just document that the timeout is different for the snapshot operation and implement it in code to be special cased? I'm in favor of having the default be "no timeout", mostly for backward compatibility. We should probably apply the same treatment to the recover operation as well. |
Thanks for all the inputs:) I think we agreed on what the behavior should be. I'll send a fix. |
Currently
etcdctl snapshot save
does not timeout. It could hang indefinitely. Besides, if user specifies command timeout in flag--command-timeout
, the command will not use this timeout.etcd/etcdctl/ctlv3/command/snapshot_command.go
Lines 106 to 108 in 7f450bf
One possible solution is to route
--command-timeout
to snapshot save command. But the default timeout is only 5 seconds. This might cause more issues to users if they do not specify timeout when calling snapshot save.etcd/etcdctl/ctlv3/ctl.go
Line 31 in 9454c4c
Any ideas on how to resolve this?
/cc @jpbetz @gyuho @xiang90
The text was updated successfully, but these errors were encountered: