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 }}
Repository navigation
storage: read blob in chunk will get exception when reach the end the blob #723
at com.google.gcloud.storage.StorageException.translateAndThrow(StorageException.java:74)
at com.google.gcloud.storage.BlobReadChannel.read(BlobReadChannel.java:159)
The root cause is, reader is blindly reading chunks from cloud storage, if it reaches beyond the end of the blob, then cloud storage will throw an error: 416 Requested range not satisfiable.
Hey @sudison thanks for the report. Unfortunately I did not manage to reproduce the error. Which version of gcloud-java are you using? How big is the blob you are trying to read?
@sudison We just merged #725 so this should be fixed in master now. We will release a new version of gcloud-java soon to make this fix available through in maven. I'll write here as soon as we release the new artifact.
Activity
mziccard commentedon Mar 7, 2016
Hey @sudison thanks for the report. Unfortunately I did not manage to reproduce the error. Which version of gcloud-java are you using? How big is the blob you are trying to read?
Thanks
sudison commentedon Mar 7, 2016
blob size is 2 x 1024 x 1024, gcloud version is 0.1.4
aozarov commentedon Mar 7, 2016
@sudison Thanks, I can reproduce that and will fix that together with #720
Fix test and issue googleapis#723
aozarov commentedon Mar 8, 2016
#725 should fix both issues (waiting for a reviewer before it can get merged).
mziccard commentedon Mar 8, 2016
@sudison We just merged #725 so this should be fixed in master now. We will release a new version of
gcloud-javasoon to make this fix available through in maven. I'll write here as soon as we release the new artifact.sudison commentedon Mar 8, 2016
Thanks for the quick fixes. Tested locally, it works.
mziccard commentedon Mar 8, 2016
@sudison Thanks to you for reporting the issues! Version 0.1.5 is out now and includes the fixes!
deps: update actions/setup-java action to v3 (googleapis#723)
chore(main): release 1.2.4 (googleapis#726)
chore(deps): update dependency com.google.cloud:google-cloud-billingb…
build(deps): update dependency org.apache.maven.plugins:maven-deploy-…
deps: update dependency com.google.protobuf:protobuf-java-util to v3.…
14 remaining items
chore(main): release 2.3.5-SNAPSHOT (googleapis#723)
chore(main): release 0.9.6-SNAPSHOT (googleapis#723)
chore(main): release 0.123.18-SNAPSHOT (#723)
chore: update dependencies for regapic (#1467) (#723)
chore: release 3.4.0 (#723)
deps: update dependency com.google.cloud:google-cloud-shared-dependen…
chore(main): release 0.122.17 (#724)
chore(main): release 0.124.0 (#770)
fix(java): rename test to be picked up by native profile (#723)
chore(main): release 2.5.0 (#729)
chore: release 3.4.0 (googleapis#723)
test(deps): update dependency org.mockito:mockito-core to v4.3.0 (goo…
chore(deps): update dependency com.google.cloud:google-cloud-pubsub t…
chore(deps): update dependency com.google.cloud:google-cloud-pubsub t…
chore(deps): update dependency com.google.cloud:libraries-bom to v20 (g…