Skip to content

Commit 966fc1a

Browse files
Random-Liuestesp
authored andcommitted
Partially revert the event discard change in #2748.
Signed-off-by: Lantao Liu <[email protected]> Signed-off-by: Phil Estes <[email protected]>
1 parent d91f841 commit 966fc1a

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

reaper/reaper.go

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import (
2626
"github.com/containerd/containerd/sys"
2727
runc "github.com/containerd/go-runc"
2828
"github.com/pkg/errors"
29-
"github.com/sirupsen/logrus"
3029
)
3130

3231
// ErrNoSuchProcess is returned when the process no longer exists
@@ -42,18 +41,10 @@ func Reap() error {
4241
Default.Lock()
4342
for c := range Default.subscribers {
4443
for _, e := range exits {
45-
select {
46-
case c <- runc.Exit{
44+
c <- runc.Exit{
4745
Timestamp: now,
4846
Pid: e.Pid,
4947
Status: e.Status,
50-
}:
51-
default:
52-
logrus.WithFields(logrus.Fields{
53-
"subscriber": c,
54-
"pid": e.Pid,
55-
"status": e.Status,
56-
}).Warn("failed to send exit to subscriber")
5748
}
5849
}
5950
}

0 commit comments

Comments
 (0)