Skip to content

Copying large object to a different bucket always times out #2243

@Safyia

Description

@Safyia

I am trying to copy a 2GB blob from one bucket to another, using the copyTo method of the blob. This always fails with the following exception:

Exception in thread "main" com.google.cloud.storage.StorageException: Read timed out
	at com.google.cloud.storage.spi.v1.HttpStorageRpc.translate(HttpStorageRpc.java:189)
	at com.google.cloud.storage.spi.v1.HttpStorageRpc.rewrite(HttpStorageRpc.java:661)
	at com.google.cloud.storage.spi.v1.HttpStorageRpc.openRewrite(HttpStorageRpc.java:621)
	at com.google.cloud.storage.StorageImpl$15.call(StorageImpl.java:433)
	at com.google.cloud.storage.StorageImpl$15.call(StorageImpl.java:430)
	at com.google.api.gax.retrying.DirectRetryingExecutor.submit(DirectRetryingExecutor.java:94)
	at com.google.cloud.RetryHelper.runWithRetries(RetryHelper.java:54)
	at com.google.cloud.storage.StorageImpl.copy(StorageImpl.java:430)
	at com.google.cloud.storage.Blob.copyTo(Blob.java:493)
	at com.google.cloud.storage.Blob.copyTo(Blob.java:546)

Copying within the same bucket works as expected. I am using the 0.20.1-alpha version of the google cloud library.

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions