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

fix(v2): set grpc.WithMaxCallAttempts() for the query backend client #3682

Merged
merged 3 commits into from
Nov 14, 2024

Conversation

aleks-p
Copy link
Contributor

@aleks-p aleks-p commented Nov 13, 2024

I missed one important change in #3675, it got accidentally reverted in one of my tests. We need to set the global grpc.WithMaxCallAttempts(500) in addition to the "MaxAttempts": 500 on the method retry policy.

As per https://github.com/grpc/grpc-go/blob/5e99daea2f11c6f9fab99470e71c6a92138f1875/service_config.go#L284-L286, the per-method maxAttempts is only used if it is smaller than the global maxAttempts which defaults to 5.

@aleks-p aleks-p requested a review from a team as a code owner November 13, 2024 17:10
@aleks-p aleks-p merged commit bef452a into main Nov 14, 2024
18 checks passed
@aleks-p aleks-p deleted the fix/v2/add-global-retries-for-query-backend branch November 14, 2024 12:29
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.

2 participants