Skip to content

Add Wait to binaryProcessor#6916

Merged
dmcgowan merged 1 commit intocontainerd:mainfrom
helsaawy:he/binaryprocessor-wait
May 10, 2022
Merged

Add Wait to binaryProcessor#6916
dmcgowan merged 1 commit intocontainerd:mainfrom
helsaawy:he/binaryprocessor-wait

Conversation

@helsaawy
Copy link
Copy Markdown
Contributor

@helsaawy helsaawy commented May 9, 2022

Add exported Wait(ctx context.Context) error interface that waits on
the underlying command (or context cancellation) and returns the error.

This fixes a race condition between .wait() and .Err error: #6914

Signed-off-by: Hamza El-Saawy [email protected]

Add exported `Wait(ctx context.Context) error` interface that waits on
the underlying command (or context cancellation) and returns the error.

This fixes a race condition between `.wait()` and `.Err error`:
containerd#6914

Signed-off-by: Hamza El-Saawy <[email protected]>
@k8s-ci-robot
Copy link
Copy Markdown

Hi @helsaawy. 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.

@helsaawy helsaawy marked this pull request as ready for review May 9, 2022 23:26
Copy link
Copy Markdown
Member

@dcantah dcantah left a comment

Choose a reason for hiding this comment

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

LGTM

@dmcgowan dmcgowan merged commit 6067aeb into containerd:main May 10, 2022
helsaawy added a commit to helsaawy/containerd that referenced this pull request May 10, 2022
Backporting PR containerd#6916 to release 1.6

Add exported `Wait(ctx context.Context) error` interface that waits on
the underlying command (or context cancellation) and returns the error.

This fixes a race condition between `.wait()` and `.Err error`:
containerd#6914

(cherry picked from commit ad8b87b)
Signed-off-by: Hamza El-Saawy <[email protected]>
@helsaawy helsaawy deleted the he/binaryprocessor-wait branch May 10, 2022 16:27
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.

5 participants