8000 gc: fix race and test failures by dmcgowan · Pull Request #1650 · containerd/containerd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

gc: fix race and test failures #1650

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

Merged
merged 2 commits into from
Oct 16, 2017
Merged

Conversation

dmcgowan
Copy link
Member

Ensures that all callers and the garbage collector are using the same lock instances to prevent cleanup of objects during creation.

Locks tend to work better when everything is using the same lock. This was missed during a refactor of the gc code before merge. This should fix the snapshot does not exist test failures.

Also added snapshot label command which I needed to debug.

Allows easier debugging of snapshots using labels

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
Ensures that all callers and the garbage collector are using
the same lock instances to prevent cleanup of objects
during creation.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
@codecov-io
Copy link

Codecov Report

Merging #1650 into master will increase coverage by 0.19%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1650      +/-   ##
==========================================
+ Coverage   48.67%   48.87%   +0.19%     
==========================================
  Files          27       27              
  Lines        4074     4080       +6     
==========================================
+ Hits         1983     1994      +11     
+ Misses       1672     1667       -5     
  Partials      419      419
Impacted Files Coverage Δ
metadata/db.go 65.5% <100%> (+1.06%) ⬆️
metadata/content.go 32.22% <0%> (+1.18%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d28b8cc...295cce2. Read the comment docs.

@crosbymichael
Copy link
Member

LGTM

Copy link
Contributor
@mlaventure mlaventure left a comment

Choose a reason for hiding this comment

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

LGTM

@mlaventure mlaventure merged commit 79dad0a into containerd:master Oct 16, 2017
@dmcgowan dmcgowan deleted the fix-gc-race branch June 5, 2018 18:21
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.

4 participants
0