Skip to content

[Release 1.1] Cherry-pick: metadata/gc: remove the noop-loop for snapshot reference#2966

Merged
crosbymichael merged 1 commit intocontainerd:release/1.1from
fuweid:remove-noop-1-1
Jan 30, 2019
Merged

[Release 1.1] Cherry-pick: metadata/gc: remove the noop-loop for snapshot reference#2966
crosbymichael merged 1 commit intocontainerd:release/1.1from
fuweid:remove-noop-1-1

Conversation

@fuweid
Copy link
Copy Markdown
Member

@fuweid fuweid commented Jan 30, 2019

The noop-loop does nothing.

The containerd doesn't have any snapshotter buckets at the beginning.
If user uses specific dir as rootfs to create container, and sets
snapshotter key to the container, like overlayfs by mistake,
the gc scheduler will try to scan the snapshotter and panic.

In order to avoid this case, remove the noop-loop here.

Signed-off-by: Wei Fu [email protected]
(cherry picked from commit 34672d4)
Signed-off-by: Wei Fu [email protected]

The noop-loop does nothing.

The containerd doesn't have any snapshotter buckets at the beginning.
If user uses specific dir as rootfs to create container, and sets
`snapshotter` key to the container, like `overlayfs` by mistake,
the gc scheduler will try to scan the snapshotter and panic.

In order to avoid this case, remove the noop-loop here.

Signed-off-by: Wei Fu <[email protected]>
(cherry picked from commit 34672d4)
Signed-off-by: Wei Fu <[email protected]>
@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #2966 into release/1.1 will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff               @@
##           release/1.1    #2966      +/-   ##
===============================================
+ Coverage        49.05%   49.07%   +0.01%     
===============================================
  Files               85       85              
  Lines             7601     7598       -3     
===============================================
  Hits              3729     3729              
+ Misses            3197     3194       -3     
  Partials           675      675
Flag Coverage Δ
#linux 49.07% <ø> (+0.01%) ⬆️
Impacted Files Coverage Δ
metadata/gc.go 66.96% <ø> (+0.88%) ⬆️

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 813e5f6...3e6d7f6. Read the comment docs.

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

@crosbymichael
Copy link
Copy Markdown
Member

LGTM

@crosbymichael crosbymichael merged commit 80c3f1a into containerd:release/1.1 Jan 30, 2019
@fuweid fuweid deleted the remove-noop-1-1 branch February 20, 2019 06:33
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