FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: update grpc single-shot uploads to validate ack'd object size by BenWhitehead · Pull Request #2567 · googleapis/java-storage · GitHub

fix: update grpc single-shot uploads to validate ack'd object size - #2567

Merged
BenWhitehead merged 1 commit into
mainfrom
fix/grpc-single-shot-validation
Jun 11, 2024
Merged

fix: update grpc single-shot uploads to validate ack'd object size#2567
BenWhitehead merged 1 commit into
mainfrom
fix/grpc-single-shot-validation

Conversation

Copy link
Copy Markdown
Collaborator

Follow up to #2527

This updated errors from grpc single-shot uploads to have messages that include useful debugging information.

When a response is received but doesn't validate with the expected state:

com.google.cloud.storage.StorageException: Finalized upload, but object size less than expected.
	|> [
	|> 	com.google.storage.v2.WriteObjectRequest{
	|> 		write_offset: 524288
	|> 		finish_write: true
	|> 	}
	|> ]
	|
	|< com.google.storage.v2.WriteObjectResponse{
	|< 	resource {
	|< 	  name: "obj"
	|< 	  size: 262144
	|< 	}
	|< }
	|

BenWhitehead added the owlbot:ignore instruct owl-bot to ignore a PR label May 28, 2024
BenWhitehead requested a review from a team May 28, 2024 20:48
product-auto-label Bot added size: l Pull request size is large. api: storage Issues related to the googleapis/java-storage API. labels May 28, 2024
BenWhitehead force-pushed the fix/grpc-single-shot-validation branch from bffb2ad to 35f3621 Compare May 28, 2024 21:46
Follow up to #2527

This updated errors from grpc single-shot uploads to have messages that include useful debugging information.

When a response is received but doesn't validate with the expected state:
```
com.google.cloud.storage.StorageException: Finalized upload, but object size less than expected.
	|> [
	|> 	com.google.storage.v2.WriteObjectRequest{
	|> 		write_offset: 524288
	|> 		finish_write: true
	|> 	}
	|> ]
	|
	|< com.google.storage.v2.WriteObjectResponse{
	|< 	resource {
	|< 	  name: "obj"
	|< 	  size: 262144
	|< 	}
	|< }
	|
```
BenWhitehead force-pushed the fix/grpc-single-shot-validation branch from 35f3621 to 0095f8b Compare May 28, 2024 22:09
BenWhitehead merged commit 65c8808 into main Jun 11, 2024
BenWhitehead deleted the fix/grpc-single-shot-validation branch June 11, 2024 20:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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. owlbot:ignore instruct owl-bot to ignore a PR size: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL