Merge pull request #6504 from jepio/jepio/pkg-oom-v2-quiet-shutdown
pkg/oom/v2: handle EventChan routine shutdown quietly
This commit is contained in:
commit
33b7f779a6
@ -102,10 +102,13 @@ func (w *watcher) Add(id string, cgx interface{}) error {
|
||||
i.ev = ev
|
||||
w.itemCh <- i
|
||||
case err := <-errCh:
|
||||
i.err = err
|
||||
w.itemCh <- i
|
||||
// we no longer get any event/err when we got an err
|
||||
logrus.WithError(err).Warn("error from *cgroupsv2.Manager.EventChan")
|
||||
// channel is closed when cgroup gets deleted
|
||||
if err != nil {
|
||||
i.err = err
|
||||
w.itemCh <- i
|
||||
// we no longer get any event/err when we got an err
|
||||
logrus.WithError(err).Warn("error from *cgroupsv2.Manager.EventChan")
|
||||
}
|
||||
return
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user