Commit e232f4e
committed
fix: hoist invocationId to ensure persistence across upload retries
Hoists the generation of `persistentInvocationId` to the beginning of
the
upload process in `Bucket.upload` and `File.save`. This ensures that
retried multipart upload attempts reuse the same invocation ID in the
`x-goog-api-client` header, rather than generating a new one for
each attempt.1 parent b2e12e7 commit e232f4e
10 files changed
Lines changed: 344 additions & 1259 deletions
File tree
- handwritten/storage
- src
- nodejs-common
- system-test
- test
- nodejs-common
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
4442 | 4443 | | |
4443 | 4444 | | |
4444 | 4445 | | |
| 4446 | + | |
4445 | 4447 | | |
4446 | 4448 | | |
4447 | 4449 | | |
| |||
4452 | 4454 | | |
4453 | 4455 | | |
4454 | 4456 | | |
4455 | | - | |
| 4457 | + | |
| 4458 | + | |
| 4459 | + | |
| 4460 | + | |
4456 | 4461 | | |
4457 | 4462 | | |
4458 | 4463 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
248 | 249 | | |
249 | 250 | | |
250 | 251 | | |
| 252 | + | |
251 | 253 | | |
252 | 254 | | |
253 | 255 | | |
| |||
4181 | 4183 | | |
4182 | 4184 | | |
4183 | 4185 | | |
| 4186 | + | |
4184 | 4187 | | |
4185 | 4188 | | |
4186 | 4189 | | |
4187 | 4190 | | |
4188 | 4191 | | |
4189 | 4192 | | |
4190 | | - | |
| 4193 | + | |
| 4194 | + | |
| 4195 | + | |
| 4196 | + | |
4191 | 4197 | | |
4192 | 4198 | | |
4193 | 4199 | | |
| |||
4449 | 4455 | | |
4450 | 4456 | | |
4451 | 4457 | | |
| 4458 | + | |
4452 | 4459 | | |
4453 | 4460 | | |
4454 | 4461 | | |
| |||
4508 | 4515 | | |
4509 | 4516 | | |
4510 | 4517 | | |
| 4518 | + | |
4511 | 4519 | | |
4512 | 4520 | | |
4513 | 4521 | | |
| |||
This file was deleted.
0 commit comments