Skip to content

feat(storage): Add full object checksum validation for appendable uploads finalize#16245

Open
v-pratap wants to merge 12 commits into
googleapis:mainfrom
v-pratap:implement-final-proposal-clean
Open

feat(storage): Add full object checksum validation for appendable uploads finalize#16245
v-pratap wants to merge 12 commits into
googleapis:mainfrom
v-pratap:implement-final-proposal-clean

Conversation

@v-pratap

Copy link
Copy Markdown
Contributor

No description provided.

@v-pratap v-pratap requested review from a team as code owners July 10, 2026 08:53
@product-auto-label product-auto-label Bot added the api: storage Issues related to the Cloud Storage API. label Jul 10, 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 refactors checksum handling and hash function management during appendable uploads. The review feedback identifies critical issues where removing the Crc32cHashFunction constructor and its recreation logic breaks checksum validation for resumed non-appendable uploads. Additionally, the reviewer recommends simplifying the UpdateChecksums signature, returning an explicit error if requested CRC32C validation cannot be performed due to missing metadata, and adding unit tests to cover the new validation paths.

Comment thread google/cloud/storage/internal/async/writer_connection_resumed.cc Outdated
Comment thread google/cloud/storage/internal/hash_function_impl.h
Comment thread google/cloud/storage/internal/async/writer_connection_impl.h Outdated
Comment thread google/cloud/storage/internal/async/writer_connection_impl.cc Outdated
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.

1 participant