Skip to content

Conversation

@kzys
Copy link
Member

@kzys kzys commented Nov 11, 2022

#250 is a bug fix. #252 is clean up but it is low-risk and cherry-picking #250 straightforward.

dcantah and others added 2 commits November 11, 2022 19:19
retryingWriteFile was a simple wrapper around os.WriteFile to retry
writes on EINTR. This was added due to change in the go runtime causing
more EINTRs to occur, more here:
golang/go#38033

However since 1.15 the stdlib automatically retries
IO on EINTR, and since this package uses things from go 1.16, all
consumers of this pkg should be on > 1.15 making the wrapper
redundant.

Signed-off-by: Danny Canter <danny@dcantah.dev>
(cherry picked from commit b05ee03)
There is a race condition while adding a brand-new process to
cgroups.procs. Like runc, we should retry on EINVAL.

We have seen the issue a lot on containerd's Rocky Linux build.
containerd/containerd#7532

Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
(cherry picked from commit 4c85060)
@kzys kzys changed the base branch from main to release/1.1 November 11, 2022 19:22
@kzys kzys marked this pull request as ready for review November 11, 2022 19:22
@kzys
Copy link
Member Author

kzys commented Nov 11, 2022

We can use 1.1 in containerd 1.6.x and 1.5.x.

@AkihiroSuda AkihiroSuda merged commit 37e6f83 into containerd:release/1.1 Nov 12, 2022
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