Skip to content

Commit 687163b

Browse files
committed
feat(storage): add speculative open hedging to AsyncClient::Open
Extends storage_experimental::EnableReadHedgingOption to storage::AsyncClient::Open() (BidiReadObject) so slow initial stream-open handshakes race against up to MaxReadHedgesOption delayed speculative attempts scheduled via CompletionQueue::MakeRelativeTimer without spawning dedicated read or hedging thread pools.
1 parent 70e2483 commit 687163b

5 files changed

Lines changed: 1122 additions & 31 deletions

File tree

‎google/cloud/storage/async/client.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,9 @@ class AsyncClient {
285285
* will resume any incomplete ranged reads if the connection(s) are
286286
* interrupted. Use `ResumePolicyOption` and `ResumePolicy` to control this.
287287
*
288+
* @see `storage_experimental::EnableReadHedgingOption` for speculative
289+
* stream-open hedging.
290+
*
288291
* @param bucket_name the name of the bucket that contains the object.
289292
* @param object_name the name of the object to be read.
290293
* @param opts options controlling the behavior of this RPC, for example

0 commit comments

Comments
 (0)