8000 Propagate context to exec delete by crosbymichael · Pull Request #38374 · moby/moby · GitHub
[go: up one dir, main page]

Skip to content

Conversation

crosbymichael
Copy link
Contributor

Signed-off-by: Michael Crosby crosbymichael@gmail.com

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Copy link
Member
@vdemeester vdemeester 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
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

@tonistiigi
Copy link
Member

I'm not sure this is a correct solution. Start can return an error from grpc when context gets canceled even if the server side completed. Then if this context is reused it would now turn this deletion into no-op. And if start failed with a proper error, context cancel can still happen after that and cancel the deletion. I guess this was also the thinking why background was used here at all.

I'm ok with switching background to a new timeouted context though.

Just as a note, that this is related to the deadlocks we are seeing and isn't solving the actual problem but just avoids one codepath that would trigger a deadlock in a different layer. Just putting this here to make sure we are still tracking the issues with client canceling fifos propagating to the containerd shim even when this PR is merged.

@thaJeztah
Copy link
Member

I guess this was also the thinking why background was used here at all.

We may want to add a comment to that part of the code to explain that reasoning

@andrewhsu
Copy link
Contributor

This PR should not be merged when #38383 is merged because 38383 is the more desirable alternative.

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.

8 participants
0