Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Commit 6435a04

Browse files
egreco12Evan Grecogcf-owl-bot[bot]
authored
feat: Add in-stream retry logic for retryable and quota errors (#2243)
* Add retry logic. TODO: get exponential retry algorithm setup * Attach exponential retry strategy to each AppendRequestAndResponse * Add changes to fake server to facilitate retry tests * Add basic default and exclusive internal/quota error retries * fix responsesToIgnore bug, add tests, remove logs * Add more tests, reformat * Add more tests * Fix schema error test, retry config * Cleanup changes, add back logs * Add newline at EOF * Run format * PR feedback * PR feedback * Use RetrySettings in StreamWriter * Add RetrySettings to JsonStreamWriter * Run format * Update clirr ignored differences; new additions never shipped * Disable retry during multiplexing * Throw exception if connection pool is enabled and retry settings are provided. * Run format * Combine retriable error checks * Add comments, make retry settings non-static * Set retry fields to final * Run format * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Evan Greco <egreco@google.com> Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 5df548a commit 6435a04

11 files changed

Lines changed: 930 additions & 59 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,20 +50,20 @@ If you are using Maven without the BOM, add this to your dependencies:
5050
If you are using Gradle 5.x or later, add this to your dependencies:
5151

5252
```Groovy
53-
implementation platform('com.google.cloud:libraries-bom:26.23.0')
53+
implementation platform('com.google.cloud:libraries-bom:26.24.0')
5454
5555
implementation 'com.google.cloud:google-cloud-bigquerystorage'
5656
```
5757
If you are using Gradle without BOM, add this to your dependencies:
5858

5959
```Groovy
60-
implementation 'com.google.cloud:google-cloud-bigquerystorage:2.42.0'
60+
implementation 'com.google.cloud:google-cloud-bigquerystorage:2.43.0'
6161
```
6262

6363
If you are using SBT, add this to your dependencies:
6464

6565
```Scala
66-
libraryDependencies += "com.google.cloud" % "google-cloud-bigquerystorage" % "2.42.0"
66+
libraryDependencies += "com.google.cloud" % "google-cloud-bigquerystorage" % "2.43.0"
6767
```
6868
<!-- {x-version-update-end} -->
6969

@@ -220,7 +220,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
220220
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquerystorage/java11.html
221221
[stability-image]: https://img.shields.io/badge/stability-stable-green
222222
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerystorage.svg
223-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerystorage/2.42.0
223+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerystorage/2.43.0
224224
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
225225
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
226226
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

google-cloud-bigquerystorage/clirr-ignored-differences.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,5 +173,20 @@
173173
<differenceType>1001</differenceType>
174174
<className>com/google/cloud/bigquery/storage/v1/StreamConnection</className>
175175
</difference>
176+
<difference>
177+
<differenceType>7002</differenceType>
178+
<className>com/google/cloud/bigquery/storage/v1/StreamWriter$Builder</className>
179+
<method>com.google.cloud.bigquery.storage.v1.StreamWriter$Builder setMaxRetryNumAttempts(int)</method>
180+
</difference>
181+
<difference>
182+
<differenceType>7002</differenceType>
183+
<className>com/google/cloud/bigquery/storage/v1/StreamWriter$Builder</className>
184+
<method>com.google.cloud.bigquery.storage.v1.StreamWriter$Builder setRetryMultiplier(double)</method>
185+
</difference>
186+
<difference>
187+
<differenceType>7002</differenceType>
188+
<className>com/google/cloud/bigquery/storage/v1/StreamWriter$Builder</className>
189+
<method>com.google.cloud.bigquery.storage.v1.StreamWriter$Builder setRetryFirstDelay(org.threeten.bp.Duration)</method>
190+
</difference>
176191
</differences>
177192

0 commit comments

Comments
 (0)