Skip to content
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

Merged
merged 1 commit into from
May 1, 2017

Conversation

sttts
Copy link
Contributor

@sttts sttts commented Apr 28, 2017

No description provided.

@sttts
Copy link
Contributor Author

sttts commented Apr 28, 2017

[test]

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 359f62c

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/1021/) (Base Commit: 87d6cb8)

@deads2k
Copy link
Contributor

deads2k commented Apr 28, 2017

[merge]

@deads2k
Copy link
Contributor

deads2k commented Apr 28, 2017

#13942

@@ -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 {
Copy link
Contributor

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?

@deads2k
Copy link
Contributor

deads2k commented May 1, 2017

re[merge]

@deads2k
Copy link
Contributor

deads2k commented May 1, 2017

#13973

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 359f62c

@openshift-bot
Copy link
Contributor

openshift-bot commented May 1, 2017

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)

@openshift-bot openshift-bot merged commit 4ba7b51 into openshift:master May 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants