Skip to content

runtime: ignore file-already-closed error if dead shim#5174

Merged
estesp merged 1 commit intocontainerd:masterfrom
fuweid:fix-5130
Mar 15, 2021
Merged

runtime: ignore file-already-closed error if dead shim#5174
estesp merged 1 commit intocontainerd:masterfrom
fuweid:fix-5130

Conversation

@fuweid
Copy link
Member

@fuweid fuweid commented Mar 12, 2021

fix: #5130

Signed-off-by: Wei Fu fuweid89@gmail.com

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the comments because of #4906

@fuweid
Copy link
Member Author

fuweid commented Mar 12, 2021

/ok-to-test

@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 12, 2021

Build succeeded.

Copy link
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

fix: containerd#5130

Signed-off-by: Wei Fu <fuweid89@gmail.com>
@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 15, 2021

Build succeeded.

@thaJeztah thaJeztah added this to the 1.5 milestone Mar 15, 2021
Copy link
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@estesp estesp merged commit fad66f9 into containerd:master Mar 15, 2021
@fuweid fuweid deleted the fix-5130 branch March 16, 2021 02:41
fuweid added a commit to fuweid/containerd that referenced this pull request Mar 18, 2021
After containerd#4906, containerd opens fifo in read/write mode in linux platform
The original comment doesn't correct and is removed by containerd#5174.

```
// original comment

// When using a multi-container shim, the fifo of the 2nd to Nth
// container will not be opened when the ctx is done. This will
// cause an ErrReadClosed that can be ignored.
```

However, we should add comment for checkCopyShimLogError to mention why
we call checkCopyShimLogError. The checkCopyShimLogError, it is to prevent
the flood of expected error messages after task die and the expected
errors depend on platform.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
uubk pushed a commit to vsk8s/containerd that referenced this pull request Sep 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error in log: copy shim log read /proc/self/fd/15: file already closed

4 participants