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

Always delete container info when we get a 'destroy' event #3623

Merged
merged 1 commit into from
May 27, 2019

Conversation

bboreham
Copy link
Collaborator

@bboreham bboreham commented May 24, 2019

Fixes #3576

Previously it would only delete if Docker said the container didn't exist, which is a race between Docker sending the event and Docker removing the info from its own records. If Scope lost the race it would never check again, so the set of containers grows and grows.

Extract a couple of functions to make the action clearer.

Previously it would only delete if Docker said the container didn't
exist, which is a race between Docker sending the event and Docker
removing the info from its own records.

Extract a couple of functions to make the action clearer.
Copy link
Contributor

@qiell qiell left a comment

Choose a reason for hiding this comment

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

lgtm

@fbarl
Copy link
Contributor

fbarl commented May 27, 2019

Fixes #3576

How confident are you about this @bboreham? :) Maybe we should wait a week or two after merging to see if this PR really fixes it?

Copy link
Contributor

@fbarl fbarl left a comment

Choose a reason for hiding this comment

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

Good job pinning this down @bboreham!

LGTM 💯

@bboreham
Copy link
Collaborator Author

Fixes #3576

How confident are you about this

I expect this is 80-90% of the problem. Probably other bugs after this one.

@bboreham bboreham merged commit c97d8b6 into master May 27, 2019
@bboreham bboreham deleted the always-delete-containers branch May 27, 2019 15:34
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.

Report sizes seem to increase over days after a restart
3 participants