Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

fuweid
Copy link
Member

@fuweid fuweid commented Mar 11, 2019

There are two images, A and B. A is based on B. If user pulls A first,
then user pulls B. containerd already has the unpacked snapshots in the
backend. During unpacking B, the client doesn't set gc snapshot
reference label to the config descriptor. That is the problem.

The gc module cannot reach the snapshot from the config descriptor. If
user removes the image B, the snapshot will be deleted by gc module.
That is why we should always set the snapshot gc label to config
descriptor.

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

There are two images, A and B. A is based on B. If user pulls A first,
then user pulls B. containerd already has the unpacked snapshots in the
backend. During unpacking B, the client doesn't set gc snapshot
reference label to the config descriptor. That is the problem.

The gc module cannot reach the snapshot from the config descriptor. If
user removes the image B, the snapshot will be deleted by gc module.
That is why we should always set the snapshot gc label to config
descriptor.

Signed-off-by: Wei Fu <[email protected]>
(cherry picked from commit 2d96aad)
Signed-off-by: Wei Fu <[email protected]>
@fuweid fuweid mentioned this pull request Mar 11, 2019
@codecov-io
Copy link

Codecov Report

Merging #3087 into release/1.2 will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##           release/1.2    #3087   +/-   ##
============================================
  Coverage        43.75%   43.75%           
============================================
  Files              101      101           
  Lines            10736    10736           
============================================
  Hits              4697     4697           
  Misses            5309     5309           
  Partials           730      730
Flag Coverage Δ
#linux 47.38% <ø> (ø) ⬆️
#windows 40.84% <ø> (-0.03%) ⬇️

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 c1f49fa...88401ba. Read the comment docs.

@crosbymichael
Copy link
Member

LGTM

Copy link
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

@estesp estesp merged commit 9ead3ca into containerd:release/1.2 Mar 11, 2019
@fuweid fuweid deleted the me-cherry-pick-2876 branch August 22, 2019 08: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.

4 participants