-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
etcdctl: use user specified timeout value for entire command execution #3530
Merged
+34
−44
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
etcdctl: use user specified timeout value for entire command execution
etcdctl should be capable to use a user specified timeout value for total command execution, not only per request timeout. This commit adds a new option --total-timeout to the command. The value passed via this option is used as a timeout value of entire command execution. Fixes coreos#3517
- v3.6.0-alpha.0
- v3.5.18
- v3.5.17
- v3.5.16
- v3.5.15
- v3.5.14
- v3.5.13
- v3.5.12
- v3.5.11
- v3.5.10
- v3.5.9
- v3.5.8
- v3.5.7
- v3.5.6
- v3.5.5
- v3.5.4
- v3.5.3
- v3.5.2
- v3.5.1
- v3.5.0
- v3.5.0-rc.1
- v3.5.0-rc.0
- v3.5.0-beta.4
- v3.5.0-beta.3
- v3.5.0-beta.2
- v3.5.0-beta.1
- v3.5.0-beta.0
- v3.5.0-alpha.0
- v3.4.35
- v3.4.34
- v3.4.33
- v3.4.32
- v3.4.31
- v3.4.30
- v3.4.29
- v3.4.28
- v3.4.27
- v3.4.26
- v3.4.25
- v3.4.24
- v3.4.23
- v3.4.22
- v3.4.21
- v3.4.20
- v3.4.19
- v3.4.18
- v3.4.17
- v3.4.16
- v3.4.15
- v3.4.14
- v3.4.13
- v3.4.12
- v3.4.11
- v3.4.10
- v3.4.9
- v3.4.8
- v3.4.7
- v3.4.6
- v3.4.5
- v3.4.4
- v3.4.3
- v3.4.2
- v3.4.1
- v3.4.0
- v3.4.0-rc.4
- v3.4.0-rc.3
- v3.4.0-rc.2
- v3.4.0-rc.1
- v3.4.0-rc.0
- v3.3.27
- v3.3.26
- v3.3.25
- v3.3.24
- v3.3.23
- v3.3.22
- v3.3.21
- v3.3.20
- v3.3.19
- v3.3.18
- v3.3.17
- v3.3.16
- v3.3.15
- v3.3.14
- v3.3.14-rc.0
- v3.3.14-beta.0
- v3.3.13
- v3.3.12
- v3.3.11
- v3.3.10
- v3.3.9
- v3.3.9_plus_git
- v3.3.8
- v3.3.7
- v3.3.6
- v3.3.5
- v3.3.4
- v3.3.3
- v3.3.2
- v3.3.1
- v3.3.0
- v3.3.0-rc.4
- v3.3.0-rc.3
- v3.3.0-rc.2
- v3.3.0-rc.1
- v3.3.0-rc.0
- v3.2.32
- v3.2.31
- v3.2.30
- v3.2.29
- v3.2.28
- v3.2.27
- v3.2.26
- v3.2.25
- v3.2.24
- v3.2.23
- v3.2.22
- v3.2.21
- v3.2.20
- v3.2.19
- v3.2.18
- v3.2.17
- v3.2.16
- v3.2.15
- v3.2.14
- v3.2.13
- v3.2.12
- v3.2.11
- v3.2.10
- v3.2.10_plus_git
- v3.2.9
- v3.2.8
- v3.2.7
- v3.2.6
- v3.2.5
- v3.2.4
- v3.2.3
- v3.2.2
- v3.2.1
- v3.2.0
- v3.2.0_plus_git
- v3.2.0+git
- v3.2.0-rc.1
- v3.2.0-rc.0
- v3.1.20
- v3.1.19
- v3.1.18
- v3.1.17
- v3.1.16
- v3.1.15
- v3.1.14
- v3.1.13
- v3.1.12
- v3.1.11
- v3.1.10
- v3.1.9
- v3.1.8
- v3.1.7
- v3.1.6
- v3.1.5
- v3.1.4
- v3.1.3
- v3.1.2
- v3.1.1
- v3.1.0
- v3.1.0-rc.1
- v3.1.0-rc.0
- v3.1.0-alpha.1
- v3.1.0-alpha.0
- v3.0.17
- v3.0.16
- v3.0.15
- v3.0.14
- v3.0.13
- v3.0.12
- v3.0.11
- v3.0.10
- v3.0.9
- v3.0.8
- v3.0.7
- v3.0.6
- v3.0.5
- v3.0.4
- v3.0.3
- v3.0.2
- v3.0.1
- v3.0.0
- v3.0.0-beta.0
- v2.3.8
- v2.3.7
- v2.3.6
- v2.3.5
- v2.3.4
- v2.3.3
- v2.3.2
- v2.3.1
- v2.3.0
- v2.3.0-alpha.1
- v2.3.0-alpha.0
- tests/v3.6.0-alpha.0
- tests/v3.5.18
- tests/v3.5.17
- tests/v3.5.16
- tests/v3.5.15
- tests/v3.5.14
- tests/v3.5.13
- tests/v3.5.12
- tests/v3.5.11
- tests/v3.5.10
- tests/v3.5.9
- tests/v3.5.8
- tests/v3.5.7
- tests/v3.5.6
- tests/v3.5.5
- tests/v3.5.4
- tests/v3.5.3
- tests/v3.5.2
- tests/v3.5.1
- tests/v3.5.0
- tests/v3.5.0-rc.1
- tests/v3.5.0-rc.0
- tests/v3.5.0-beta.4
- tests/v3.5.0-beta.3
- tests/v3.5.0-beta.2
- tests/v3.5.0-alpha.0
- server/v3.6.0-alpha.0
- server/v3.5.18
- server/v3.5.17
- server/v3.5.16
- server/v3.5.15
- server/v3.5.14
- server/v3.5.13
- server/v3.5.12
- server/v3.5.11
- server/v3.5.10
- server/v3.5.9
- server/v3.5.8
- server/v3.5.7
- server/v3.5.6
- server/v3.5.5
- server/v3.5.4
- server/v3.5.3
- server/v3.5.2
- server/v3.5.1
- server/v3.5.0
- server/v3.5.0-rc.1
- server/v3.5.0-rc.0
- server/v3.5.0-beta.4
- server/v3.5.0-beta.3
- server/v3.5.0-beta.2
- server/v3.5.0-alpha.0
- raft/v3.6.0-alpha.0
- raft/v3.5.18
- raft/v3.5.17
- raft/v3.5.16
- raft/v3.5.15
- raft/v3.5.14
- raft/v3.5.13
- raft/v3.5.12
- raft/v3.5.11
- raft/v3.5.10
- raft/v3.5.9
- raft/v3.5.8
- raft/v3.5.7
- raft/v3.5.6
- raft/v3.5.5
- raft/v3.5.4
- raft/v3.5.3
- raft/v3.5.2
- raft/v3.5.1
- raft/v3.5.0
- raft/v3.5.0-rc.1
- raft/v3.5.0-rc.0
- raft/v3.5.0-beta.4
- raft/v3.5.0-beta.3
- raft/v3.5.0-beta.2
- raft/v3.5.0-alpha.0
- pkg/v3.6.0-alpha.0
- pkg/v3.5.18
- pkg/v3.5.17
- pkg/v3.5.16
- pkg/v3.5.15
- pkg/v3.5.14
- pkg/v3.5.13
- pkg/v3.5.12
- pkg/v3.5.11
- pkg/v3.5.10
- pkg/v3.5.9
- pkg/v3.5.8
- pkg/v3.5.7
- pkg/v3.5.6
- pkg/v3.5.5
- pkg/v3.5.4
- pkg/v3.5.3
- pkg/v3.5.2
- pkg/v3.5.1
- pkg/v3.5.0
- pkg/v3.5.0-rc.1
- pkg/v3.5.0-rc.0
- pkg/v3.5.0-beta.4
- pkg/v3.5.0-beta.3
- pkg/v3.5.0-beta.2
- pkg/v3.5.0-alpha.0
- etcdutl/v3.6.0-alpha.0
- etcdutl/v3.5.18
- etcdutl/v3.5.17
- etcdutl/v3.5.16
- etcdutl/v3.5.15
- etcdutl/v3.5.14
- etcdutl/v3.5.13
- etcdutl/v3.5.12
- etcdutl/v3.5.11
- etcdutl/v3.5.10
- etcdutl/v3.5.9
- etcdutl/v3.5.8
- etcdutl/v3.5.7
- etcdutl/v3.5.6
- etcdutl/v3.5.5
- etcdutl/v3.5.4
- etcdutl/v3.5.3
- etcdutl/v3.5.2
- etcdutl/v3.5.1
- etcdutl/v3.5.0
- etcdutl/v3.5.0-rc.1
- etcdutl/v3.5.0-rc.0
- etcdutl/v3.5.0-beta.4
- etcdutl/v3.5.0-beta.3
- etcdutl/v3.5.0-beta.2
- etcdctl/v3.6.0-alpha.0
- etcdctl/v3.5.18
- etcdctl/v3.5.17
- etcdctl/v3.5.16
- etcdctl/v3.5.15
- etcdctl/v3.5.14
- etcdctl/v3.5.13
- etcdctl/v3.5.12
- etcdctl/v3.5.11
- etcdctl/v3.5.10
- etcdctl/v3.5.9
- etcdctl/v3.5.8
- etcdctl/v3.5.7
- etcdctl/v3.5.6
- etcdctl/v3.5.5
- etcdctl/v3.5.4
- etcdctl/v3.5.3
- etcdctl/v3.5.2
- etcdctl/v3.5.1
- etcdctl/v3.5.0
- etcdctl/v3.5.0-rc.1
- etcdctl/v3.5.0-rc.0
- etcdctl/v3.5.0-beta.4
- etcdctl/v3.5.0-beta.3
- etcdctl/v3.5.0-beta.2
- etcdctl/v3.5.0-alpha.0
- client/v3.6.0-alpha.0
- client/v3.5.18
- client/v3.5.17
- client/v3.5.16
- client/v3.5.15
- client/v3.5.14
- client/v3.5.13
- client/v3.5.12
- client/v3.5.11
- client/v3.5.10
- client/v3.5.9
- client/v3.5.8
- client/v3.5.7
- client/v3.5.6
- client/v3.5.5
- client/v3.5.4
- client/v3.5.3
- client/v3.5.2
- client/v3.5.1
- client/v3.5.0
- client/v3.5.0-rc.1
- client/v3.5.0-rc.0
- client/v3.5.0-beta.4
- client/v3.5.0-beta.3
- client/v3.5.0-beta.2
- client/v3.5.0-alpha.0
- client/v2.306.0-alpha.0
- client/v2.305.18
- client/v2.305.17
- client/v2.305.16
- client/v2.305.15
- client/v2.305.14
- client/v2.305.13
- client/v2.305.12
- client/v2.305.11
- client/v2.305.10
- client/v2.305.9
- client/v2.305.8
- client/v2.305.7
- client/v2.305.6
- client/v2.305.5
- client/v2.305.4
- client/v2.305.3
- client/v2.305.2
- client/v2.305.1
- client/v2.305.0
- client/v2.305.0-rc.1
- client/v2.305.0-rc.0
- client/v2.305.0-beta.4
- client/v2.305.0-beta.3
- client/v2.305.0-beta.2
- client/v2.305.0-alpha.0
- client/pkg/v3.6.0-alpha.0
- client/pkg/v3.5.18
- client/pkg/v3.5.17
- client/pkg/v3.5.16
- client/pkg/v3.5.15
- client/pkg/v3.5.14
- client/pkg/v3.5.13
- client/pkg/v3.5.12
- client/pkg/v3.5.11
- client/pkg/v3.5.10
- client/pkg/v3.5.9
- client/pkg/v3.5.8
- client/pkg/v3.5.7
- client/pkg/v3.5.6
- client/pkg/v3.5.5
- client/pkg/v3.5.4
- client/pkg/v3.5.3
- client/pkg/v3.5.2
- client/pkg/v3.5.1
- client/pkg/v3.5.0
- client/pkg/v3.5.0-rc.1
- client/pkg/v3.5.0-rc.0
- client/pkg/v3.5.0-beta.4
- client/pkg/v3.5.0-beta.3
- client/pkg/v3.5.0-beta.2
- api/v3.6.0-alpha.0
- api/v3.5.18
- api/v3.5.17
- api/v3.5.16
- api/v3.5.15
- api/v3.5.14
- api/v3.5.13
- api/v3.5.12
- api/v3.5.11
- api/v3.5.10
- api/v3.5.9
- api/v3.5.8
- api/v3.5.7
- api/v3.5.6
- api/v3.5.5
- api/v3.5.4
- api/v3.5.3
- api/v3.5.2
- api/v3.5.1
- api/v3.5.0
- api/v3.5.0-rc.1
- api/v3.5.0-rc.0
- api/v3.5.0-beta.4
- api/v3.5.0-beta.3
- api/v3.5.0-beta.2
- api/v3.5.0-alpha.0
commit 8ebc9331111395fedbeedb3a346b302b95b147cc
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 would
defer cancel()
here. It is reasonable because the ctx is for the whole function.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 cancel()
seems nice, I'll fix it.