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

feat(spanner): remove dedefault dial option that disables service config #5118

Closed
wants to merge 1 commit into from

Conversation

mohanli-ml
Copy link
Contributor

@mohanli-ml mohanli-ml commented Nov 11, 2021

DirectPath based on Traffic Director can not work with grpc.WithDisableServiceConfig().
Background: googleapis/google-api-go-client#1260
Bug: b/202169093#comment8

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 11, 2021
@product-auto-label product-auto-label bot added the api: spanner Issues related to the Spanner API. label Nov 11, 2021
@noahdietz
Copy link
Contributor

This option is part of the generated codebase. This file should not be changed manually.

This was added to all cloud clients to prevent APIs from specifying retry policies that would retry in the grpc layer as well as in the gapic layer.

We can remove it from the generator if you believe this is no longer a concern.

@noahdietz
Copy link
Contributor

Is this what you want? googleapis/gapic-generator-go#812

@mohanli-ml
Copy link
Contributor Author

mohanli-ml commented Nov 12, 2021

@noahdietz Thanks Noah! Yes I do want to remove grpc.WithDisableServiceConfig() for Spanner (and Bigtable, but Bigtable actually does not have this option so it is not a concern), as once it is set I do not have a way to remove it, so it must be removed.

However, from blame this option is set 2 years ago, and I am not sure if disabling retry in the grpc layer is still a concern. Do you know who has the context? If it is, then I guess we can either: 1). find another way to disable retry in grpc; 2). or add a new API WithEnableServiceConfig in grpc so that Spanner can set it for DirectPath traffic (@menghanl, Menghan, is it feasible to have WithEnableServiceConfig?)

@noahdietz
Copy link
Contributor

I've merged the generator change. I will cut a release and update the generation pipeline today (hopefully). You can probably close this PR.

The option was added by default in anticipation of some changes that never came to fruition so I think its OK to remove it at this point.

@mohanli-ml mohanli-ml closed this Nov 12, 2021
@menghanl
Copy link

menghanl commented Nov 12, 2021

There's also an option to just disable retry: https://pkg.go.dev/google.golang.org/grpc#WithDisableRetry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the Spanner API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants