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

feat: allow specifying an expected object size for resumable operations. by BenWhitehead · Pull Request #2661 · googleapis/java-storage · GitHub

feat: allow specifying an expected object size for resumable operations. - #2661

Merged
BenWhitehead merged 1 commit into
mainfrom
fix-2511
Aug 23, 2024
Merged

feat: allow specifying an expected object size for resumable operations.#2661
BenWhitehead merged 1 commit into
mainfrom
fix-2511

Conversation

Copy link
Copy Markdown
Collaborator

Update resumable upload failure detection to be more specific about classifying a request as SCENARIO_5

Fixes #2511

BenWhitehead added the owlbot:ignore instruct owl-bot to ignore a PR label Aug 6, 2024
BenWhitehead requested a review from a team August 6, 2024 17:30
product-auto-label Bot added size: l Pull request size is large. api: storage Issues related to the googleapis/java-storage API. labels Aug 6, 2024
&& ed.getErrorInfo() != null
&& ed.getErrorInfo().getReason().equals("GRPC_MISMATCHED_UPLOAD_SIZE"))) {
clientDetectedError(
ResumableSessionFailureScenario.SCENARIO_5.toStorageException(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

can we get some comments around what Scenario 5 is to make it easier to read?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

oh i see this was there before as well. my apologies. that can be a followup.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

ResumableSessionFailureScenario is an enum that is shared by several of our upload implementations and defines the types of failure scenarios that can happen when processing an upload request.

SCENARIO_5 is client side data loss detected

SCENARIO_5(
BaseServiceException.UNKNOWN_CODE,
"dataLoss",
"Client side data loss detected. Attempt to append to a resumable session with an offset higher than the backend has"),

&& ed.getErrorInfo() != null
&& ed.getErrorInfo().getReason().equals("GRPC_MISMATCHED_UPLOAD_SIZE"))) {
clientDetectedError(
ResumableSessionFailureScenario.SCENARIO_5.toStorageException(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

oh i see this was there before as well. my apologies. that can be a followup.

Update resumable upload failure detection to be more specific about classifying a request as SCENARIO_5

Fixes #2511
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.

allow specifying the content length for resumable uploads

2 participants


Back | FazBrowse Home | New Git URL