dart-lang/gcloud

Bucket.write() should retry non-resumable uploads too

jonasfj opened this issue · 1 comments

As I've come to understand it there is some special code handling resumable uploads in googleapis package...

We should ensure that the same retry strategy is employed when doing non-resumable uploads in:

void _startNormalUpload(Stream<List<int>> stream, int length) {

After further investigation it seems things are not as simple, resumable uploads are only retried if it's not the first request initiating the resumable upload process.

Effectively, it seems retries are only attempted if uploading have been initiated..

I don't think we should fix this now, as there doesn't seem to be a clear policy on what we retry and when..