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

docs: update storage_copy_file to include MegabytesCopiedPerChunk by BenWhitehead · Pull Request #2910 · googleapis/java-storage · GitHub

docs: update storage_copy_file to include MegabytesCopiedPerChunk - #2910

Merged
BenWhitehead merged 1 commit into
mainfrom
docs/copy-sample-improvements
Feb 5, 2025
Merged

docs: update storage_copy_file to include MegabytesCopiedPerChunk#2910
BenWhitehead merged 1 commit into
mainfrom
docs/copy-sample-improvements

Conversation

Copy link
Copy Markdown
Collaborator

The GCS API that underpins Storage#copy(CopyRequest) is storage.objects.rewrite.

A rewrite is technically what we now refer to in Google Cloud API land as a Long Running Operation, meaning it's structured in such a way as to be able to take longer than would normally be acceptable for a single RPC.

In the case of performing the rewrite, GCS is "moving" the bytes over the google network and won't respond to the request at all until complete. If it takes GCS more than the client configured read timeout to actually "move" the bytes, the client interprets it as a read timeout and fails out.

Update the code snippet for copy to make it more robust to large objects.

product-auto-label Bot added size: m Pull request size is medium. api: storage Issues related to the googleapis/java-storage API. labels Feb 4, 2025

tritone left a comment

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

Nice changes!

BenWhitehead merged commit 971ca5d into main Feb 5, 2025
BenWhitehead deleted the docs/copy-sample-improvements branch February 5, 2025 18:28
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. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL