Skip to content

Shutdown leaks an error when the container was never started#31279

Merged
vieux merged 1 commit into
moby:masterfrom
aaronlehmann:shutdown-error-leakage
Feb 23, 2017
Merged

Shutdown leaks an error when the container was never started#31279
vieux merged 1 commit into
moby:masterfrom
aaronlehmann:shutdown-error-leakage

Conversation

@aaronlehmann

Copy link
Copy Markdown

I found that sometimes tasks would end up in a rejected state when trying to update them quickly. The problem was that Shutdown could fail if called before the container was started. Instead of returning an error in this case, Shutdown should succeed. This allows tasks to progress to the "shutdown" state as expected.

This was part of #31108 that I'm extracting into its own PR.

I found that sometimes tasks would end up in a rejected state when
trying to update them quickly. The problem was that Shutdown could fail
if called before the container was started. Instead of returning an
error in this case, Shutdown should succeed. This allows tasks to
progress to the "shutdown" state as expected.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
@aboch

aboch commented Feb 23, 2017

Copy link
Copy Markdown
Contributor

Looks good to me

@mavenugo

Copy link
Copy Markdown
Contributor

LGTM. thanks @aaronlehmann

@dongluochen

dongluochen commented Feb 23, 2017

Copy link
Copy Markdown
Contributor

lgtm (not a maintainer)

@vieux

vieux commented Feb 23, 2017

Copy link
Copy Markdown
Contributor

LGTM

@vieux vieux merged commit 52ba250 into moby:master Feb 23, 2017
@GordonTheTurtle GordonTheTurtle added this to the 17.04.0 milestone Feb 23, 2017
@vieux vieux mentioned this pull request Feb 23, 2017
@vieux vieux modified the milestones: 17.03.0, 17.04.0 Feb 23, 2017
@aaronlehmann aaronlehmann deleted the shutdown-error-leakage branch February 23, 2017 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment