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

fixed race and added support for all option in docker stats #4596

Closed
wants to merge 1 commit into from

Conversation

cgtexmex
Copy link
Contributor

@cgtexmex cgtexmex commented Apr 5, 2017

In some cases a race could be encountered when executing docker
stats. The race would result in an orphaned go routine that
would be a memory leak.

In addition if stats --no-stream -all was requested the persona
would hang on any stopped containers. Stats now will consider
the container state when processing these requests.

Finally, the unit testing coverage was increased to just over
90%.

Fixes #4549, #4585, #4421

@cgtexmex cgtexmex requested review from jzt and caglar10ur April 5, 2017 20:56
@cgtexmex cgtexmex force-pushed the del-boca-vista branch 2 times, most recently from 25a1c4b to 8886012 Compare April 6, 2017 17:03
Copy link
Contributor

@caglar10ur caglar10ur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cgtexmex cgtexmex force-pushed the del-boca-vista branch 2 times, most recently from c3b775f to 713732e Compare April 6, 2017 20:14
@cgtexmex cgtexmex changed the title fixed race and added support for all option in docker stats [skip ci] fixed race and added support for all option in docker stats Apr 6, 2017
@cgtexmex
Copy link
Contributor Author

cgtexmex commented Apr 6, 2017

Added the integration tests to this PR -- this is dependent on #4551

In some cases a race could be encountered when executing docker
stats.  The race would result in an orphaned go routine that
would be a memory leak.

In addition if stats --no-stream -all was requested the persona
would hang on any stopped containers.  Stats now will consider
the container state when processing these requests.

Finally, the unit testing coverage was increased to just over
90% and integration tests were created.

Fixes vmware#4549, vmware#4585, vmware#4421
@cgtexmex cgtexmex changed the title [skip ci] fixed race and added support for all option in docker stats fixed race and added support for all option in docker stats Apr 8, 2017
@cgtexmex cgtexmex closed this Apr 8, 2017
@cgtexmex cgtexmex deleted the del-boca-vista branch April 8, 2017 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants