Skip to content

[release/1.5] task delete: Closes task IO before waiting#6129

Merged
kevpar merged 1 commit intocontainerd:release/1.5from
dcantah:cp-closetaskio
Oct 20, 2021
Merged

[release/1.5] task delete: Closes task IO before waiting#6129
kevpar merged 1 commit intocontainerd:release/1.5from
dcantah:cp-closetaskio

Conversation

@dcantah
Copy link
Copy Markdown
Member

@dcantah dcantah commented Oct 15, 2021

After containerd restarts, it will try to recover its sandboxes,
containers, and images. If it detects a task in the Created or
Stopped state, it will be removed. This will cause the containerd
process it hang on Windows on the t.io.Wait() call.

Calling t.io.Close() beforehand will solve this issue.

Additionally, the same issue occurs when trying to stopp a sandbox
after containerd restarts. This will solve that case as well.

Signed-off-by: Claudiu Belu [email protected]
(cherry picked from commit 55faa5e)

Signed-off-by: Daniel Canter [email protected]

After containerd restarts, it will try to recover its sandboxes,
containers, and images. If it detects a task in the Created or
Stopped state, it will be removed. This will cause the containerd
process it hang on Windows on the t.io.Wait() call.

Calling t.io.Close() beforehand will solve this issue.

Additionally, the same issue occurs when trying to stopp a sandbox
after containerd restarts. This will solve that case as well.

Signed-off-by: Claudiu Belu <[email protected]>
(cherry picked from commit 55faa5e)
Signed-off-by: Daniel Canter <[email protected]>
@k8s-ci-robot
Copy link
Copy Markdown

Hi @dcantah. Thanks for your PR.

I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Oct 15, 2021

Build succeeded.

@dcantah dcantah closed this Oct 16, 2021
@dcantah dcantah reopened this Oct 16, 2021
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Oct 16, 2021

Build succeeded.

@dcantah dcantah closed this Oct 16, 2021
@dcantah dcantah reopened this Oct 16, 2021
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Oct 16, 2021

Build succeeded.

@dcantah
Copy link
Copy Markdown
Member Author

dcantah commented Oct 18, 2021

@claudiubelu Thanks for this btw! Got bit by this when adding stdio pipe reconnect logic here microsoft/hcsshim#1197. Gist was if nothing ever came down one of the streams (process never logged to stderr for example) we'd never accept a new connection so the waitgroup.Done would never fire for stderr and we'd just sit there stuck.

@dcantah dcantah closed this Oct 19, 2021
@dcantah dcantah reopened this Oct 19, 2021
@dcantah
Copy link
Copy Markdown
Member Author

dcantah commented Oct 19, 2021

/ok-to-test

@k8s-ci-robot
Copy link
Copy Markdown

@dcantah: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

Details

In response to this:

/ok-to-test

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@dcantah
Copy link
Copy Markdown
Member Author

dcantah commented Oct 19, 2021

Worth a shot 🤷‍♂️ Thought reviewers would be able to kick off a k8s run, is it only maintainers?

Edit: Ahh, it's people in the org now that I clicked on the containerd hyperlink in the original post from the bot.

@claudiubelu
Copy link
Copy Markdown
Contributor

/ok-to-test

@k8s-ci-robot
Copy link
Copy Markdown

@claudiubelu: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

Details

In response to this:

/ok-to-test

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Oct 19, 2021

Build succeeded.

Copy link
Copy Markdown
Member

@fuweid fuweid 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

@kevpar kevpar left a comment

Choose a reason for hiding this comment

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

LGTM

@kevpar kevpar merged commit 62853e6 into containerd:release/1.5 Oct 20, 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.

6 participants