You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
HttpStorageRpc#getCurrentUploadOffset uses 0 as error code in StorageException #687
Thanks for stopping by to let us know something could be better!
PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
Please run down the following list and make sure you've tried the usual "quick fixes":
If you are still having issues, please include as much information as possible:
Environment details
Specify the API at the beginning of the title. For example, "BigQuery: ...").
General, Core, and Other are also allowed as types
OS type and version:
Java version: 1.8.x
storage version(s): 1.113.9
Steps to reproduce
Code example
// example
Stack trace
c.g.c.s.StorageException: Not sure what occurred. Here's debugging information:
Response:
com.google.api.client.http.HttpResponseException: 503 Service Unavailable
PUT https://storage.googleapis.com/upload/storage/v1/b/.../o?name=...&uploadType=resumable&upload_id=...
at c.g.c.s.s.v.HttpStorageRpc.getCurrentUploadOffset(HttpStorageRpc.java:790) ~[google-cloud-storage-1.113.9.jar:1.113.9]
at c.g.c.s.BlobWriteChannel$1.run(BlobWriteChannel.java:133)
at j.u.c.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_181]
at c.g.a.g.r.DirectRetryingExecutor.submit(DirectRetryingExecutor.java:105) ~[gax-1.60.1.jar:1.60.1]
at c.g.c.RetryHelper.run(RetryHelper.java:76) ~[google-cloud-core-1.94.0.jar:1.94.0]
at c.g.c.RetryHelper.runWithRetries(RetryHelper.java:50)
at c.g.c.s.BlobWriteChannel.flushBuffer(BlobWriteChannel.java:70) ~[google-cloud-storage-1.113.9.jar:1.113.9]
at c.g.c.BaseWriteChannel.close(BaseWriteChannel.java:151) ~[google-cloud-core-1.94.0.jar:1.94.0]
at j.n.c.Channels$1.close(Channels.java:178) ~[na:1.8.0_181]
Thanks for the ping, the error code 0 is to prevent retries in this case, but looks like we need to add retries to the getCurrentUploadOffset which was not how it's implemented.
Thanks for raising this issue, I'll work to get this fixed within the next week.
Activity
tomcham commentedon Feb 18, 2021
Hello, @frankyn any estimated time when this will be fixed?
frankyn commentedon Feb 18, 2021
Hi @tomcham,
Thanks for the ping, the error code 0 is to prevent retries in this case, but looks like we need to add retries to the getCurrentUploadOffset which was not how it's implemented.
Thanks for raising this issue, I'll work to get this fixed within the next week.
fix: retrying get remote offset and recover from last chunk failures. (…
frankyn commentedon Mar 2, 2021
The fix was released in version
1.113.12