Skip to content

Commit

Permalink
Add retry mechanism while ContainedInspectContainer return NotFound
Browse files Browse the repository at this point in the history
  • Loading branch information
derricheng committed May 17, 2024
1 parent baff523 commit 6abb4ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/gc/flannel_gc.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,9 @@ func (gc *flannelGC) shouldCleanup(cid string) bool {
}
}
}
glog.Warningf("Error inspect container %s: %v", cid, err)
glog.Warningf("Recognized Error inspect container %s: %v", cid, err)
} else {
glog.Warningf("Error inspect container %s: %v", cid, err)
glog.Warningf("Unrecognized Error inspect container %s: %v", cid, err)
}
} else {
if c != nil && (c.State == criapi.PodSandboxState_SANDBOX_NOTREADY) {
Expand Down

0 comments on commit 6abb4ad

Please sign in to comment.