-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Bump GRPC to 1.64 #10250
base: main
Are you sure you want to change the base?
Bump GRPC to 1.64 #10250
Conversation
Skipping CI for Draft Pull Request. |
@dcantah I think you've played with grpc stuff recently, pls PTAL. |
@dmcgowan also as we were chatting on the history of a lot of these options on slack a bit ago. We were wondering if we would be able to just forego WithBlock today like we do here |
3c8c416
to
20aebe7
Compare
I believe the original issue like 8 years was related to clients connecting and when the daemon was not online the client would end up hanging. Now in that case it seems to be handled better with this PR. In this PR...
it comes back in 1 second. Although would be good to avoid the warning log. In main...
it takes 10 seconds to timeout. |
Windows needed workaround 20aebe7. Everything else looks green.
@dmcgowan The warning is coming from an extra call to introspection service when creating a client in |
@mxpv @dcantah Is the containerd/core/runtime/v2/shim.go Line 311 in ccc41e6
|
@ZhangShuaiyi Good question, I'm not sure. The reason for it was so that on restart we can tell what shims to ignore if they're not responding when going to reload state (usually because they crashed for some reason so the socket isn't listening). We already had that info with |
Signed-off-by: Maksym Pavlenko <[email protected]>
Signed-off-by: Maksym Pavlenko <[email protected]>
… addresses Signed-off-by: Maksym Pavlenko <[email protected]>
This is follow up to #10247 with linter fixes.
GRPC
1.64
deprecates lots of functions that we currently use to create a new GRPC connection:grpc.Dial
/grpc.DialContext
WithBlock
,WithTimeout
,WithReturnConnectionError
, andFailOnNonTempDialError
.Notably, Anti-Patterns of Client creation explicitly mentions that we should not create the client the way we do.
This PR removes deprecated dial options, AFAIU there are no alternatives to provide and the old approach is just not recommended by the GRPC team.