Repository navigation
Commit d14e2a9
Dhriti Chopra
feat(storage): add blobReadSession overload that takes a fast open read
Seventh step of fast open BiDi reads (go/fast-open-bidi-read, b/552263062).
Storage.blobReadSession(BlobId, ReadProjectionConfig, BlobSourceOption...)
sends the read described by the config in the same request that opens the
session. The first readAs with an equal config is given that read, saving the
round trip a separate first read would take. Only asFutureBytes,
asFutureByteString and asChannel configs are accepted, and a null config only
opens the session.
This is additive: blobReadSession(BlobId, BlobSourceOption...) is unchanged.
OtelStorageDecorator passes the config through, so fast open also works with
OpenTelemetry tracing enabled, and a fast open read that fails is recorded as
an error on its readAs span.1 parent 49d3976 commit d14e2a9
5 files changed
Lines changed: 285 additions & 32 deletions
File tree
- java-storage/google-cloud-storage/src
- main/java/com/google/cloud/storage
- test/java/com/google/cloud/storage
- it/runner/registry
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
1468 | 1470 | | |
1469 | 1471 | | |
1470 | 1472 | | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
1471 | 1493 | | |
1472 | 1494 | | |
1473 | 1495 | | |
| |||
1484 | 1506 | | |
1485 | 1507 | | |
1486 | 1508 | | |
1487 | | - | |
| 1509 | + | |
| 1510 | + | |
1488 | 1511 | | |
1489 | 1512 | | |
1490 | 1513 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1476 | 1476 | | |
1477 | 1477 | | |
1478 | 1478 | | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
1479 | 1487 | | |
1480 | 1488 | | |
1481 | 1489 | | |
| |||
1484 | 1492 | | |
1485 | 1493 | | |
1486 | 1494 | | |
1487 | | - | |
| 1495 | + | |
| 1496 | + | |
1488 | 1497 | | |
1489 | 1498 | | |
1490 | 1499 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5955 | 5955 | | |
5956 | 5956 | | |
5957 | 5957 | | |
| 5958 | + | |
| 5959 | + | |
| 5960 | + | |
| 5961 | + | |
| 5962 | + | |
| 5963 | + | |
| 5964 | + | |
| 5965 | + | |
| 5966 | + | |
| 5967 | + | |
| 5968 | + | |
| 5969 | + | |
| 5970 | + | |
| 5971 | + | |
| 5972 | + | |
| 5973 | + | |
| 5974 | + | |
| 5975 | + | |
| 5976 | + | |
| 5977 | + | |
| 5978 | + | |
| 5979 | + | |
| 5980 | + | |
| 5981 | + | |
| 5982 | + | |
| 5983 | + | |
| 5984 | + | |
| 5985 | + | |
| 5986 | + | |
| 5987 | + | |
| 5988 | + | |
| 5989 | + | |
| 5990 | + | |
| 5991 | + | |
| 5992 | + | |
| 5993 | + | |
| 5994 | + | |
| 5995 | + | |
5958 | 5996 | | |
5959 | 5997 | | |
5960 | 5998 | | |
| |||
0 commit comments