mirror of
https://github.com/containerd/containerd.git
synced 2026-08-12 22:16:27 +00:00
Merge pull request #10763 from k8s-infra-cherrypick-robot/cherry-pick-10723-to-release/1.7
[release/1.7] Fix the race condition during GC of snapshots when client retries
This commit is contained in:
@@ -298,13 +298,6 @@ func (u *Unpacker) unpack(
|
||||
}
|
||||
defer unlock()
|
||||
|
||||
if _, err := sn.Stat(ctx, chainID); err == nil {
|
||||
// no need to handle
|
||||
return nil
|
||||
} else if !errdefs.IsNotFound(err) {
|
||||
return fmt.Errorf("failed to stat snapshot %s: %w", chainID, err)
|
||||
}
|
||||
|
||||
// inherits annotations which are provided as snapshot labels.
|
||||
snapshotLabels := snapshots.FilterInheritedLabels(desc.Annotations)
|
||||
if snapshotLabels == nil {
|
||||
|
||||
Reference in New Issue
Block a user