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

docs: update custom timeout and retry sample #1174

Merged
merged 1 commit into from
Sep 28, 2023

Conversation

olavloite
Copy link
Contributor

Fixes a couple of minor issues in the retry- and timeout sample:

  1. Remove DeadlineExceeded as a retryable code, as the sample uses a single timeout and will not retry on DeadlineExceeded anyways, meaning that the addition of that error code was just confusing.
  2. Update the maxBackoff to 16 seconds. We are setting this value to 16 seconds for all client libraries, as it makes the sample confusing when the max backoff is larger than the total timeout (60 seconds).

The documentation page that uses this sample is https://cloud.google.com/spanner/docs/custom-timeout-and-retry

Do not merge: Please hold off on merging until all the samples have been updated.

Fixes a couple of minor issues in the retry- and timeout sample:

1. Remove DeadlineExceeded as a retryable code, as the sample uses a single timeout and will not retry on DeadlineExceeded anyways, meaning that the addition of that error code was just confusing.
1. Update the maxBackoff to 16 seconds. We are setting this value to 16 seconds for all client libraries, as it makes the sample confusing when the max backoff is larger than the total timeout (60 seconds).

The documentation page that uses this sample is https://cloud.google.com/spanner/docs/custom-timeout-and-retry

Do not merge: Please hold off on merging until all the samples have been updated.
@olavloite olavloite added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Sep 21, 2023
@olavloite olavloite requested a review from a team as a code owner September 21, 2023 12:07
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Sep 21, 2023
@olavloite olavloite removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Sep 28, 2023
@olavloite olavloite merged commit f8fbb4e into main Sep 28, 2023
8 checks passed
@olavloite olavloite deleted the update-custom-timeout-and-retry-sample branch September 28, 2023 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants