-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
UPSTREAM: 44970: CRI: Fix StopContainer timeout #13938
Conversation
[test] |
Evaluated for origin test up to 359f62c |
continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/1021/) (Base Commit: 87d6cb8) |
[merge] |
@@ -209,7 +209,11 @@ func (r *RemoteRuntimeService) StartContainer(containerID string) error { | |||
|
|||
// StopContainer stops a running container with a grace period (i.e., timeout). | |||
func (r *RemoteRuntimeService) StopContainer(containerID string, timeout int64) error { | |||
ctx, cancel := getContextWithTimeout(r.timeout) | |||
ctx, cancel := getContextWithTimeout(time.Duration(timeout) * time.Second) | |||
if timeout == 0 { |
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.
Wait - why do we get a context twice?
re[merge] |
Evaluated for origin merge up to 359f62c |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/524/) (Base Commit: 1ba9541) (Image: devenv-rhel7_6190) |
No description provided.