Skip to content

Commit 774c7ba

Browse files
authored
Merge pull request containerd#10764 from saketjajoo/saketjajoo/3787-race-condition-1.6
[release/1.6] Fix the race condition during GC of snapshots when client retries
2 parents da9421e + 74951d6 commit 774c7ba

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

unpacker.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,6 @@ func (u *unpacker) unpack(
142142
}
143143
defer unlock()
144144

145-
if _, err := sn.Stat(ctx, chainID); err == nil {
146-
// no need to handle
147-
return nil
148-
} else if !errdefs.IsNotFound(err) {
149-
return fmt.Errorf("failed to stat snapshot %s: %w", chainID, err)
150-
}
151-
152145
// inherits annotations which are provided as snapshot labels.
153146
labels := snapshots.FilterInheritedLabels(desc.Annotations)
154147
if labels == nil {

0 commit comments

Comments
 (0)