Skip to content

Commit d8e698f

Browse files
committed
external-snapshotter constantly retrying CreateSnapshot calls on error w/o backoff
1 parent ffaba0f commit d8e698f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/sidecar-controller/snapshot_controller_base.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ func NewCSISnapshotSideCarController(
120120
// VolumeSnapshotContent.
121121
// This will trigger a VolumeSnapshotContent update and it will cause the obj to be re-queued immediately
122122
// and CSI CreateSnapshot will be called again without exponential backoff.
123+
// Considering the object is modified more than once during the workflow we are not relying on the annoations of oldobj and newobj.
124+
// We will just check if newobj status has error and avoid re-queue.
123125
// So we are skipping the re-queue here to avoid CreateSnapshot being called without exponential backoff.
124126
newSnapContent := newObj.(*crdv1.VolumeSnapshotContent)
125127
if newSnapContent.Status != nil && newSnapContent.Status.Error != nil {

0 commit comments

Comments
 (0)