Phoenixasuga / google-api-java-client

Automatically exported from code.google.com/p/google-api-java-client
0 stars 0 forks source link

resumable direct uploads #581

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Java environments (e.g. Java 6, Android 2.3, App Engine, or All)?
Java 6, non App Engine

If you call getMediaHttpUploader().setDirectUploadEnabled(true) on a 
Storage.Objects.Insert 
object(google-api-services-storage-v1beta1-rev3-1.7.2-beta.jar), and you have a 
back-off policy set (which is true by default), if the single-request upload 
fails, it never retries it. For retryable error codes, it should try again 
according to the back-off policy.

Furthermore, since there's minimum block write size for some API services, we 
should probably automatically direct-upload files below a certain size, since 
if the resumable request fails in the space of that first block, the client 
will have to restart from the beginning anyway.

Original issue reported on code.google.com by nherr...@google.com on 7 Aug 2012 at 3:57

GoogleCodeExporter commented 9 years ago

Original comment by rmis...@google.com on 7 Aug 2012 at 7:31

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 8 Oct 2012 at 7:19

GoogleCodeExporter commented 9 years ago

Original comment by rmis...@google.com on 11 Dec 2012 at 1:31

GoogleCodeExporter commented 9 years ago
https://codereview.appspot.com/7086060/

Original comment by yan...@google.com on 20 Jan 2013 at 1:49

GoogleCodeExporter commented 9 years ago
Note: I decided not to auto-direct because that would be going against the 
developer's explicit wishes.  Instead, I added JavaDoc on 
setDirectUploadEnabled to recommend it to the developer.

Original comment by yan...@google.com on 20 Jan 2013 at 1:51

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 16 Feb 2013 at 1:25