Skip to content

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

Closed
metalmatze wants to merge 2 commits intoweaveworks:masterfrom
metalmatze:WithBalancerName
Closed

httpgrpc/server: Update NewClient to not use WithBalancerName#240
metalmatze wants to merge 2 commits intoweaveworks:masterfrom
metalmatze:WithBalancerName

Conversation

@metalmatze
Copy link
Copy Markdown

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

Closes #239

cc @bboreham

metalmatze added 2 commits May 3, 2022 12:17
Additionally, gRPC was bumped to v1.34.0 to support the insecure.NewCredentials()
Copy link
Copy Markdown
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
Copy Markdown
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.

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
Copy Markdown
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
Copy Markdown

mar4uk commented May 16, 2022

@metalmatze any updates when this PR could be merged?

@metalmatze
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Collaborator

bboreham commented Jul 6, 2022

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

@metalmatze
Copy link
Copy Markdown
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
Copy Markdown
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