Skip to content

Conversation

jonyhy96
Copy link

REF: https://github.com/containerd/containerd/blob/main/docs/getting-started.md#task-wait-and-start

You always want to make sure you Wait before calling Start on a task. This makes sure that you do not encounter any races if the task has a simple program like /bin/true that exits promptly after calling start.

@jonyhy96 jonyhy96 reopened this Jul 11, 2025
@AkihiroSuda
Copy link
Member

How to test this?

@apostasie
Copy link
Contributor

@AkihiroSuda I am not sure how we could test that - but this might be the reason we are seeing non-sensical failures on slow environments (like EL) where a command being ran seemingly returns nothing (for example #4119)?

Unless something is objectionable here, I would vote for merging this even without tests.

2 cents.

@AkihiroSuda AkihiroSuda added this to the v2.1.4 milestone Aug 19, 2025
@AkihiroSuda AkihiroSuda reopened this Aug 19, 2025
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

@AkihiroSuda AkihiroSuda merged commit 892d448 into containerd:main Aug 27, 2025
151 of 166 checks passed
@jonyhy96 jonyhy96 deleted the fix-wait branch August 27, 2025 11:29
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