Skip to content

feat(storage): expose initial read ranges in AsyncClient - #16341

Merged
kalragauri merged 4 commits into
googleapis:mainfrom
kalragauri:feat/async-open
Aug 12, 2026
Merged

feat(storage): expose initial read ranges in AsyncClient#16341
kalragauri merged 4 commits into
googleapis:mainfrom
kalragauri:feat/async-open

Conversation

@kalragauri

Copy link
Copy Markdown
Contributor

This PR introduces the InitialReadRanges configuration to AsyncClient::Open(), allowing applications to eagerly request specific byte ranges concurrently during connection setup.

@product-auto-label product-auto-label Bot added the api: storage Issues related to the Cloud Storage API. label Aug 11, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds support for specifying initial read ranges when opening an object in the asynchronous Google Cloud Storage client. It introduces the ByteRange and InitialReadRanges structures, a new overload of AsyncClient::Open, and corresponding tests and examples. The review feedback suggests adding default member initializers to the ByteRange struct to prevent potential undefined behavior from uninitialized memory.

Comment thread google/cloud/storage/async/client.h
@kalragauri
kalragauri marked this pull request as ready for review August 11, 2026 11:44
@kalragauri
kalragauri requested review from a team as code owners August 11, 2026 11:44
@codecov

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.23%. Comparing base (abc95d5) to head (58477a5).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #16341   +/-   ##
=======================================
  Coverage   92.23%   92.23%           
=======================================
  Files        2227     2227           
  Lines      209317   209357   +40     
=======================================
+ Hits       193067   193107   +40     
  Misses      16250    16250           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread google/cloud/storage/async/client.cc Outdated
Comment thread google/cloud/storage/async/client.h
@kalragauri
kalragauri enabled auto-merge (squash) August 12, 2026 10:17
@kalragauri
kalragauri merged commit 443e254 into googleapis:main Aug 12, 2026
62 of 63 checks passed
@kalragauri
kalragauri deleted the feat/async-open branch August 18, 2026 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the Cloud Storage API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Sponsor
SponsoredKunjungi sekarang
Promo