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

httpgrpc/server: Update NewClient to not use WithBalancerName #240

Closed
wants to merge 2 commits into from

Conversation

metalmatze
Copy link

Additionally, gRPC was bumped to v1.34.0 to support the insecure.NewCredentials()

Closes #239

cc @bboreham

Copy link
Collaborator

@bboreham bboreham left a comment

Choose a reason for hiding this comment

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

I think the code changes are OK, but I'm a little nervous whether it is completely compatible.

Could you do a check with the two different versions as client and server and report back?

Comment on lines +85 to +87
received_payload_bytes_bucket{method="gRPC",route="/grpc.health.v1.Health/Check",le="1.048576e+06"} 1
received_payload_bytes_bucket{method="gRPC",route="/grpc.health.v1.Health/Check",le="2.62144e+06"} 1
received_payload_bytes_bucket{method="gRPC",route="/grpc.health.v1.Health/Check",le="5.24288e+06"} 1
Copy link
Collaborator

Choose a reason for hiding this comment

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

Any idea why this changed? Seems like it lost a space in formatting.

@@ -211,9 +215,8 @@ func TestGrpcStatsStreaming(t *testing.T) {
received_payload_bytes_bucket{method="gRPC",route="/middleware.EchoServer/Process",le="1.048576e+08"} 5
received_payload_bytes_bucket{method="gRPC",route="/middleware.EchoServer/Process",le="2.62144e+08"} 5
received_payload_bytes_bucket{method="gRPC",route="/middleware.EchoServer/Process",le="+Inf"} 5
received_payload_bytes_sum{method="gRPC",route="/middleware.EchoServer/Process"} 1.5728664e+07
received_payload_bytes_sum{method="gRPC",route="/middleware.EchoServer/Process"} 1.5728689e+07
Copy link
Collaborator

Choose a reason for hiding this comment

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

This says we received a different number of bytes, which makes me nervous about gRPC compatibility.

@mar4uk
Copy link

mar4uk commented May 16, 2022

@metalmatze any updates when this PR could be merged?

@metalmatze
Copy link
Author

This week I'm at KubeCon and then need to see. If others could check in the meantime I'm happy getting it merged without me.

@bboreham
Copy link
Collaborator

For clarity, I am looking for someone to say "we tested forwards/backwards compatibility by doing xxx, and it was fine".

@bboreham
Copy link
Collaborator

bboreham commented Jul 6, 2022

Ping, in case any of you have updates on testing gRPC compatibility.

@metalmatze
Copy link
Author

Sorry, currently don't have the time to work on this. If someone does feel free to pick it up again.

jpkrohling added a commit to jpkrohling/common that referenced this pull request Aug 26, 2022
Fixes weaveworks#239, based on weaveworks#240.

Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
jpkrohling added a commit to jpkrohling/common that referenced this pull request Aug 29, 2022
This is a simplified version of weaveworks#240, without touching the gRPC versions.

Fixes weaveworks#239

Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
@metalmatze
Copy link
Author

Hopefully #254 gets us there. Thanks @jpkrohling

@metalmatze metalmatze closed this Aug 31, 2022
jpkrohling added a commit to jpkrohling/common that referenced this pull request Sep 1, 2022
On projects consuming this module as a library, gRPC might be set at
newer versions where the deprecated #WithBalancerName has been removed
already. Given that the version used by this module already offers a
forward-compatible method, this commit uses that instead of the
deprecated #WithBalancerName.

This is a simplified version of weaveworks#240, without touching the gRPC versions.

Fixes weaveworks#239

Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
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.

Broken grpc.WithBalancerName
3 participants