Skip to content

feat(storage): skip unnecessary checksum computation during read_object#5134

Merged
vsharonlynn merged 8 commits intogoogleapis:mainfrom
vsharonlynn:feat/storage-read-object-optimize-checksum-operations
Mar 31, 2026
Merged

feat(storage): skip unnecessary checksum computation during read_object#5134
vsharonlynn merged 8 commits intogoogleapis:mainfrom
vsharonlynn:feat/storage-read-object-optimize-checksum-operations

Conversation

@vsharonlynn
Copy link
Copy Markdown
Contributor

@vsharonlynn vsharonlynn commented Mar 25, 2026

Continuation to issue #4285.

@product-auto-label product-auto-label Bot added the api: storage Issues related to the Cloud Storage API. label Mar 25, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.02%. Comparing base (3f93a28) to head (854055b).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5134      +/-   ##
==========================================
- Coverage   98.02%   98.02%   -0.01%     
==========================================
  Files         214      214              
  Lines       44186    44217      +31     
==========================================
+ Hits        43313    43343      +30     
- Misses        873      874       +1     

☔ View full report in Codecov by Sentry.
📢 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.

@vsharonlynn vsharonlynn force-pushed the feat/storage-read-object-optimize-checksum-operations branch 2 times, most recently from 7732fb5 to a52674a Compare March 26, 2026 15:21
@vsharonlynn vsharonlynn marked this pull request as ready for review March 26, 2026 15:53
@vsharonlynn vsharonlynn requested a review from a team as a code owner March 26, 2026 15:53
@vsharonlynn vsharonlynn force-pushed the feat/storage-read-object-optimize-checksum-operations branch 2 times, most recently from 0aa3f31 to 8acdeb7 Compare March 28, 2026 02:46
@vsharonlynn
Copy link
Copy Markdown
Contributor Author

vsharonlynn commented Mar 30, 2026

Double-checking this PR.

@vsharonlynn vsharonlynn deleted the feat/storage-read-object-optimize-checksum-operations branch March 30, 2026 03:13
@vsharonlynn vsharonlynn restored the feat/storage-read-object-optimize-checksum-operations branch March 30, 2026 03:56
@vsharonlynn vsharonlynn reopened this Mar 30, 2026
@vsharonlynn vsharonlynn force-pushed the feat/storage-read-object-optimize-checksum-operations branch from 8acdeb7 to 45924a9 Compare March 30, 2026 04:05
@vsharonlynn
Copy link
Copy Markdown
Contributor Author

vsharonlynn commented Mar 30, 2026

More details about this PR:

This change optimises for read ranges by short-circuiting the computation if the server returns empty checksums (regardless of request options). It solves "checksums should be disabled by default when downloading a range" in the issue.

Copy link
Copy Markdown
Contributor

@coryan coryan left a comment

Choose a reason for hiding this comment

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

I don't understand the need for a should_track_checksums flag.

Comment thread src/storage/src/storage/read_object/resumable.rs Outdated
@vsharonlynn vsharonlynn changed the title impl(storage): skip unnecessary checksum computation during read_object feat(storage): skip unnecessary checksum computation during read_object Mar 31, 2026
@vsharonlynn vsharonlynn force-pushed the feat/storage-read-object-optimize-checksum-operations branch from 45924a9 to fdabae2 Compare March 31, 2026 01:45
@vsharonlynn vsharonlynn merged commit 0ad88c6 into googleapis:main Mar 31, 2026
36 checks passed
@vsharonlynn vsharonlynn deleted the feat/storage-read-object-optimize-checksum-operations branch March 31, 2026 05:44
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