Skip to content

Commit fe82dd2

Browse files
authored
Merge pull request #1217 from leonardoce/error-checking
Add error checking to processGroupSnapshotWithDeletionTimestamp
2 parents 55def14 + 4103d3e commit fe82dd2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/common-controller/groupsnapshot_controller_helper.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,6 +1441,13 @@ func (ctrl *csiSnapshotCommonController) processGroupSnapshotWithDeletionTimesta
14411441
utils.VolumeGroupSnapshotNameLabel: groupSnapshot.Name,
14421442
},
14431443
))
1444+
if err != nil {
1445+
klog.Errorf(
1446+
"processGroupSnapshotWithDeletionTimestamp[%s]: Failed to look for snapshot members: %v",
1447+
utils.GroupSnapshotKey(groupSnapshot),
1448+
err.Error())
1449+
return err
1450+
}
14441451

14451452
// check if an individual snapshot belonging to the group snapshot is being
14461453
// used for restore a PVC

0 commit comments

Comments
 (0)