Skip to content

Conversation

@fuweid
Copy link
Member

@fuweid fuweid commented Dec 1, 2020

If the shim has been killed and ttrpc connection has been
closed, the shimErr will not be nil. For this case, the event
subscriber, like moby/moby, might have received the exit or delete
events. Just in case, we should allow ttrpc-callback-on-close to
send the exit and delete events again. And the exit status will
depend on result of shimV2.Delete.

If not, the shim has been delivered the exit and delete events.
So we should remove the task record and prevent duplicate events from
ttrpc-callback-on-close.

Fix: #4769

Signed-off-by: Wei Fu [email protected]

If the shim has been killed and ttrpc connection has been
closed, the shimErr will not be nil. For this case, the event
subscriber, like moby/moby, might have received the exit or delete
events. Just in case, we should allow ttrpc-callback-on-close to
send the exit and delete events again. And the exit status will
depend on result of shimV2.Delete.

If not, the shim has been delivered the exit and delete events.
So we should remove the task record and prevent duplicate events from
ttrpc-callback-on-close.

Fix: containerd#4769

Signed-off-by: Wei Fu <[email protected]>
@fuweid fuweid changed the title [RFC] runtime: should not send duplicate task exit event runtime: should not send duplicate task exit event Dec 1, 2020
@fuweid fuweid requested a review from AkihiroSuda December 1, 2020 13:56
@theopenlab-ci
Copy link

theopenlab-ci bot commented Dec 1, 2020

Build succeeded.

@crosbymichael
Copy link
Member

LGTM

Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

Thanks, confirmed this PR fixes #4769

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.

docker run busybox true does not work with io.containerd.runc.v2 (regression in #4538)

3 participants