Commit b4b41d9
authored
test(bigquerystorage): increase await timeout for createReadSession to 1 minute (#14125)
## Description
Increases the `await()` timeout to 1 minute in `ITBigQueryStorageTest`
(v1beta1, v1beta2) and adds the 1-minute retry logic to the production
v1 test helper (`Helper.processRowsAtSnapshot`) when creating read
sessions.
### Context
In CI environments, table metadata propagation from
`bigquery.googleapis.com` to `bigquerystorage.googleapis.com` can take
longer than 10 seconds, causing `ConditionTimeoutException` or
`NotFoundException` test flakes (e.g., in
`sponge/b1dc622b-9c70-41cb-953e-74c2dfbb3f31`).
Setting a 1-minute retry ceiling:
- Provides sufficient buffer for metadata propagation across busy CI
runners.
- Ensures consistency across v1, v1beta1, and v1beta2 test suites.
- Matches the 1-minute timeout used elsewhere in the test suite (e.g.
`job.waitFor(...,
RetryOption.totalTimeoutDuration(Duration.ofMinutes(1)))`).
- Adds zero extra latency to successful runs, as `await()` returns
immediately upon session creation.1 parent 9ac5561 commit b4b41d9
3 files changed
Lines changed: 19 additions & 3 deletions
File tree
- java-bigquerystorage/google-cloud-bigquerystorage-it/src/test/java/com/google/cloud/bigquery/storage
- v1beta1/it
- v1beta2/it
- v1/it/util
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| |||
159 | 163 | | |
160 | 164 | | |
161 | 165 | | |
162 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
163 | 179 | | |
164 | 180 | | |
165 | 181 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1236 | 1236 | | |
1237 | 1237 | | |
1238 | 1238 | | |
1239 | | - | |
| 1239 | + | |
1240 | 1240 | | |
1241 | 1241 | | |
1242 | 1242 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1217 | 1217 | | |
1218 | 1218 | | |
1219 | 1219 | | |
1220 | | - | |
| 1220 | + | |
1221 | 1221 | | |
1222 | 1222 | | |
1223 | 1223 | | |
| |||
0 commit comments