Skip to content

feat: add default end-to-end crc32c checksumming for several upload methods via grpc transport #3176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

BenWhitehead
Copy link
Collaborator

  • Storage#blobWriteSession for BlobWriteSessionConfigs.getDefault()
  • Storage#blobWriteSession for BlobWriteSessionConfigs.bufferToTempDirThenUpload()
  • Storage#blobWriteSession for BlobWriteSessionConfigs.bufferToDiskThenUpload(*)
  • Storage#create(BlobInfo, InputStream)
  • Storage#createFrom(BlobInfo, InputStream)
  • Storage#createFrom(BlobInfo, Path)
  • Storage#writer

…via grpc transport

* Storage#blobWriteSession for BlobWriteSessionConfigs.getDefault()
* Storage#blobWriteSession for BlobWriteSessionConfigs.bufferToTempDirThenUpload()
* Storage#blobWriteSession for BlobWriteSessionConfigs.bufferToDiskThenUpload(*)
* Storage#create(BlobInfo, InputStream)
* Storage#createFrom(BlobInfo, InputStream)
* Storage#createFrom(BlobInfo, Path)
* Storage#writer
@BenWhitehead BenWhitehead requested a review from a team as a code owner June 26, 2025 20:30
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: storage Issues related to the googleapis/java-storage API. labels Jun 26, 2025
@BenWhitehead BenWhitehead added this to the e2e-crc32c-media milestone Jun 30, 2025
Copy link
Contributor

@cojenco cojenco left a comment

Choose a reason for hiding this comment

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

LGTM, had a GVC review session with Ben

@@ -163,7 +163,7 @@ public WritableByteChannelSession<?, BlobInfo> writeSession(
grpc.storageClient
.writeObjectCallable()
.withDefaultCallContext(grpcCallContext))
.setHasher(Hasher.noop())
.setHasher(opts.getHasher())
Copy link
Contributor

Choose a reason for hiding this comment

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

love how the call site changes are so clean and contained 🎉

BenWhitehead added a commit that referenced this pull request Jul 23, 2025
Merge train for

* chore: cleanup Crc32cValue and associated Hasher operations #3167
* chore: add Hasher#defaultHasher() #3173
* chore: add UnifiedOpts.Opts#getHasher() to return a hasher relative to the set of Opts defined for an operation. #3174
* feat: add default end-to-end crc32c checksumming for several upload methods via grpc transport #3176
* feat: add default end-to-end checksumming for JournalingBlobWriteSessionConfig #3180
* fix: give user provided checksum precondition priority for Storage#create methods that accept byte[] #3182
* fix: move crc32c computation before writing to disk for BufferToDiskThenUpload BlobWriteSession config #3187
@BenWhitehead
Copy link
Collaborator Author

merged in #3197

@BenWhitehead BenWhitehead deleted the checksumming/05/grpc-resumable-and-direct branch July 23, 2025 18:14
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 googleapis/java-storage API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy