This repository was archived by the owner on Feb 24, 2026. It is now read-only.
Commit 6435a04
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
- google-cloud-bigquerystorage
- src
- main/java/com/google/cloud/bigquery/storage/v1
- test/java/com/google/cloud/bigquery/storage/v1
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
| 223 | + | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| |||
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
176 | 191 | | |
177 | 192 | | |
0 commit comments