Skip to content

runtime: ignore ttrpc closed error#4198

Merged
estesp merged 2 commits intocontainerd:masterfrom
fuweid:ignore-ttrpc-closed
Apr 20, 2020
Merged

runtime: ignore ttrpc closed error#4198
estesp merged 2 commits intocontainerd:masterfrom
fuweid:ignore-ttrpc-closed

Conversation

@fuweid
Copy link
Copy Markdown
Member

@fuweid fuweid commented Apr 20, 2020

For some reason, shimv2 process doesn't exist. The ttrpc doesn't detect
the connection closed by server until delete task. For this case, we
should ignore the ttrpc.ErrClosed and let task manager handle the
cleanup.

And update ttrpc vendor with 6e416eafd26e6e738df716b21d421d5b59702bb4 to have better ErrClosed filter.

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

vendor.conf Outdated
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

maybe we can make new release for ttrpc when release containerd v1.4

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Apr 20, 2020

Build succeeded.

@fuweid fuweid changed the title Ignore ttrpc closed runtime: ignore ttrpc closed error Apr 20, 2020
@fuweid fuweid force-pushed the ignore-ttrpc-closed branch from e7e0073 to 6a686c6 Compare April 20, 2020 15:11
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Apr 20, 2020

Build succeeded.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could we log a debug message?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

updated

fuweid added 2 commits April 20, 2020 23:34
For some reason, shimv2 process doesn't exist. The ttrpc doesn't detect
the connection closed by server until delete task. For this case, we
should ignore the ttrpc.ErrClosed and let task manager handle the
cleanup.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
@fuweid fuweid force-pushed the ignore-ttrpc-closed branch from 6a686c6 to 126e497 Compare April 20, 2020 15:38
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Apr 20, 2020

Build succeeded.

Copy link
Copy Markdown
Member

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
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 1d083fe into containerd:master Apr 20, 2020
@fuweid fuweid deleted the ignore-ttrpc-closed branch April 22, 2020 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants