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

Fix bug that could incorrectly clean up pause container before other containers #2838

Merged
merged 1 commit into from
Mar 27, 2021

Conversation

angelcar
Copy link
Contributor

Summary

#2824 introduced a regression that could incorrectly clean up pause container before other containers. The expected behavior is that the pause container is stopped and cleaned after all other containers have stopped.

Implementation details

Reverting stopContainer method to before the regression, but keeping the pause container cleanup check after the task stops, which was the main intention of #2824.

Testing

Added a second container to TestPauseContainerHappyPath to verify the pause container is the last to be cleaned up and stopped, which was a missing check.

New tests cover the changes: yes

Description for the changelog

Fix bug that could incorrectly clean up pause container before other containers

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@angelcar angelcar merged commit e6b9f2a into aws:dev Mar 27, 2021
@angelcar angelcar deleted the angelcar_pause_container_cleanup_fix branch March 27, 2021 05:52
@shubham2892 shubham2892 added this to the 1.51.0 milestone Mar 31, 2021
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