Skip to content

feat(storage): add checksum validation in the json read channel#13270

Draft
nidhiii-27 wants to merge 2 commits into
default-checksum-json-readfrom
read-channel-checksumming
Draft

feat(storage): add checksum validation in the json read channel#13270
nidhiii-27 wants to merge 2 commits into
default-checksum-json-readfrom
read-channel-checksumming

Conversation

@nidhiii-27
Copy link
Copy Markdown
Contributor

@nidhiii-27 nidhiii-27 commented May 26, 2026

Enabled default full object checksum validation for the following:
Storage#reader(blobId)
Storage#reader(bucketName, blobName)

Copy link
Copy Markdown
Contributor

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

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 introduces CRC32C checksum validation for unbuffered downloads in ApiaryUnbufferedReadableByteChannel by integrating a Hasher and wrapping the content stream in a HashingInputStream during full object downloads. The reviewer feedback highlights three key improvements: using the instance field hasher instead of Hasher.defaultHasher() to respect custom hasher configurations, avoiding the overhead of wrapping the stream when the expected checksum is missing, and asserting the specific ChecksumMismatchException directly in the unit tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant