feat(spanner): support timeout, retry- and backoff policy for partitions#5517
Open
olavloite wants to merge 9 commits intogoogleapis:mainfrom
Open
feat(spanner): support timeout, retry- and backoff policy for partitions#5517olavloite wants to merge 9 commits intogoogleapis:mainfrom
olavloite wants to merge 9 commits intogoogleapis:mainfrom
Conversation
Adds support for setting a timeout, retry policy, and backoff policy per statement and read. This allows an application to override the defaults for these options on a per statement-basis. Note: This change adds the API for all types of statements. However, the retry and backoff policies are not respected for the streaming RPCs ExecuteStreamingSql and StreamingRead yet. This will be added in a follow-up pull request.
…treaming RPCs Add support for custom timeouts, retry policies, and backoff policies for streaming RPCs that return a ResultSet. This also refactors ResultSet to store its internal defaults as a RetryPolicy and BackoffPolicy, instead of hardcoded custom values.
Adds support for setting a timeout, retry policy, and backoff policy per statement and read. This allows an application to override the defaults for these options on a per statement-basis. Note: This change adds the API for all types of statements. However, the retry and backoff policies are not respected for the streaming RPCs ExecuteStreamingSql and StreamingRead yet. This will be added in a follow-up pull request.
…nt-request-options-for-streaming
Adds support for setting an attempt timeout and a retry- and backoff policy for a partition in a BatchReadOnlyTransaction. These settings are not serialized, which means that any host that wants to apply any of these settings to its execution of a partition must set these explicitly.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5517 +/- ##
==========================================
- Coverage 97.75% 97.74% -0.02%
==========================================
Files 218 218
Lines 49498 49703 +205
==========================================
+ Hits 48389 48580 +191
- Misses 1109 1123 +14 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…panner-statement-request-options-for-partitions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support for setting an attempt timeout and a retry- and backoff policy for
a partition in a BatchReadOnlyTransaction. These settings are not serialized,
which means that any host that wants to apply any of these settings to its
execution of a partition must set these explicitly.
Depends on #5516