Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime/v2: net.Dial gRPC shim sockets before trying grpc #9447

Merged
merged 1 commit into from Dec 1, 2023

Conversation

dcantah
Copy link
Member

@dcantah dcantah commented Dec 1, 2023

This is mostly to workaround an issue with gRPC based shims after containerd restart. If a shim dies while containerd is also down/restarting, on reboot grpc.DialContext with our current set of DialOptions will make us wait for 100 seconds per shim even if the socket no longer exists or has no listener.

This is mostly to workaround an issue with gRPC based shims after containerd
restart. If a shim dies while containerd is also down/restarting, on reboot
grpc.DialContext with our current set of DialOptions will make us wait for
100 seconds per shim even if the socket no longer exists or has no listener.

Signed-off-by: Danny Canter <danny@dcantah.dev>
Copy link
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

REF: #6031

@mxpv mxpv added this pull request to the merge queue Dec 1, 2023
Merged via the queue into containerd:main with commit 6f405e8 Dec 1, 2023
40 checks passed
@dcantah dcantah added the cherry-pick/1.7.x Change to be cherry picked to release/1.7 branch label Dec 3, 2023
@dcantah
Copy link
Member Author

dcantah commented Dec 3, 2023

/cherrypick release/1.7

@k8s-infra-cherrypick-robot

@dcantah: #9447 failed to apply on top of branch "release/1.7":

Applying: runtime/v2: net.Dial gRPC shim sockets before trying grpc
Using index info to reconstruct a base tree...
M	runtime/v2/shim.go
Falling back to patching base and 3-way merge...
Auto-merging runtime/v2/shim.go
CONFLICT (content): Merge conflict in runtime/v2/shim.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 runtime/v2: net.Dial gRPC shim sockets before trying grpc
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherrypick release/1.7

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick/1.7.x Change to be cherry picked to release/1.7 branch size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants