这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@BenWhitehead
Copy link
Collaborator

Update gRPC ReadObject to use default hasher, and validate checksums of received messages.

Move validation logic from read to onResponse. This ensures the read side can never advance the read position by accident if checksum validation fails. Also move generation validation to onResponse so that all response validation is handled in a common location and manner. If validation fails, the error will be enqueued and observed by the read thread. When the errors is observed by the read thread, an additional stacktrace will be attached -- either by suppressed async exception, or wrapped exception depending on the type of error -- such that an application will be able to determine where the error was observed.

Update the test that previously validated that an IOException was raised if validation failed, to instead validate that a retry happens.

Update gRPC ReadObject to use default hasher, and validate checksums of received messages.

Move validation logic from read to onResponse. This ensures the read side can never advance the read position by accident if checksum validation fails. Also move generation validation to onResponse so that all response validation is handled in a common location and manner. If validation fails, the error will be enqueued and observed by the read thread. When the errors is observed by the read thread, an additional stacktrace will be attached -- either by suppressed async exception, or wrapped exception depending on the type of error -- such that an application will be able to determine where the error was observed.

Update the test that previously validated that an IOException was raised if validation failed, to instead validate that a retry happens.
@BenWhitehead BenWhitehead requested a review from a team as a code owner October 7, 2025 16:06
@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 Oct 7, 2025
@BenWhitehead BenWhitehead merged commit 6eef1b0 into main Oct 8, 2025
25 checks passed
@BenWhitehead BenWhitehead deleted the feat/grpc-read-checksum branch October 8, 2025 15:16
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.

3 participants