Skip to content

Commit 6abb4ad

Browse files
author
derricheng
committed
Add retry mechanism while ContainedInspectContainer return NotFound
1 parent baff523 commit 6abb4ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/gc/flannel_gc.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,9 @@ func (gc *flannelGC) shouldCleanup(cid string) bool {
210210
}
211211
}
212212
}
213-
glog.Warningf("Error inspect container %s: %v", cid, err)
213+
glog.Warningf("Recognized Error inspect container %s: %v", cid, err)
214214
} else {
215-
glog.Warningf("Error inspect container %s: %v", cid, err)
215+
glog.Warningf("Unrecognized Error inspect container %s: %v", cid, err)
216216
}
217217
} else {
218218
if c != nil && (c.State == criapi.PodSandboxState_SANDBOX_NOTREADY) {

0 commit comments

Comments
 (0)