Skip to content

feat(bigtable): Use delay from RetryInfo#11955

Merged
bhshkh merged 5 commits intogoogleapis:mainfrom
bhshkh:feature/cbt-retry-info
May 13, 2025
Merged

feat(bigtable): Use delay from RetryInfo#11955
bhshkh merged 5 commits intogoogleapis:mainfrom
bhshkh:feature/cbt-retry-info

Conversation

@bhshkh
Copy link
Copy Markdown
Contributor

@bhshkh bhshkh commented Apr 4, 2025

b/368356092

  1. Used information from RetryInfo, if available, to retry requests. When server stop sending RetryInfo, use initial backoff. This is similar to grpc design

https://github.com/grpc/proposal/blob/90462b53883a0455157f9a0fd0a76b36fa567acc/A6-client-retries.md?plain=1#L209

  1. User can disable the usage of RetryInfo using DISABLE_RETRY_INFO environment variable

@product-auto-label product-auto-label Bot added the api: bigtable Issues related to the Bigtable API. label Apr 4, 2025
Copy link
Copy Markdown
Contributor

@igorbernstein2 igorbernstein2 left a comment

Choose a reason for hiding this comment

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

just a few drive by comments

Comment thread bigtable/bigtable.go Outdated
Comment thread bigtable/admin.go Outdated
Comment thread bigtable/bigtable.go Outdated
Comment thread bigtable/bigtable_test.go Outdated
@bhshkh bhshkh force-pushed the feature/cbt-retry-info branch from 6704f90 to 74cc8ad Compare April 29, 2025 22:11
@bhshkh bhshkh marked this pull request as ready for review April 30, 2025 08:33
@bhshkh bhshkh requested review from a team and igorbernstein2 April 30, 2025 08:33
@bhshkh bhshkh enabled auto-merge (squash) April 30, 2025 20:34
@bhshkh bhshkh force-pushed the feature/cbt-retry-info branch from 429b8ff to 7508529 Compare May 1, 2025 05:00
@bhshkh bhshkh force-pushed the feature/cbt-retry-info branch from 7508529 to 2a9343f Compare May 1, 2025 05:05
Comment thread bigtable/bigtable.go
Comment thread bigtable/bigtable.go Outdated
Comment on lines +208 to +209
defaultRetryOption = newRetryOption(clientOnlyRetry, false /* disableRetryInfo */)
defaultExecuteQueryRetryOption = newRetryOption(clientOnlyExecuteQueryRetry, false /* disableRetryInfo */)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It looks like disableRetryInfo is false here. Does this mean these two comments are incorrect?

Copy link
Copy Markdown
Contributor Author

@bhshkh bhshkh May 5, 2025

Choose a reason for hiding this comment

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

The comment is just to denote the argument name in function. I was trying to do something similar to https://engdoc.corp.google.com/eng/doc/devguide/cpp/styleguide.md?cl=head#Function_Argument_Comments

removed now

@bhshkh bhshkh requested a review from gkevinzheng May 5, 2025 18:55
@bhshkh bhshkh merged commit 0510711 into googleapis:main May 13, 2025
10 checks passed
@bhshkh bhshkh deleted the feature/cbt-retry-info branch May 21, 2025 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigtable Issues related to the Bigtable API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants