Skip to content

Fixes for Immediate Uploaders#1418

Merged
ssalinas merged 1 commit into
s3uploader-upload-immediatelyfrom
immediate_upload_fixes
Feb 10, 2017
Merged

Fixes for Immediate Uploaders#1418
ssalinas merged 1 commit into
s3uploader-upload-immediatelyfrom
immediate_upload_fixes

Conversation

@ssalinas

@ssalinas ssalinas commented Feb 9, 2017

Copy link
Copy Markdown
Contributor

@PtrTeixeira after looking at the code for this for a while I realized a few things:

  • It's quite messy to deal with the single uploader metric counter when the immediate vs regular uploaders are treated so differently
  • We weren't actually able to guarantee that the files eventually got uploaded in the exception case. i.e. if there is an exception from S3, we probably need to retry that still.

So, I updated this to have a map to keep track of the immediate uploaders and have a separate metric counter for them as well. We submit the callables to the executor service immediately, but rather than working with the callbacks, we check the results on our regular polling interval, restarting them if there are exceptions (only retrying for exception, not for no files found right now)

This probably still needs a few tweaks, can you take it from here on this one?

@PtrTeixeira

Copy link
Copy Markdown
Contributor

👀

@ssalinas ssalinas modified the milestone: 0.14.0 Feb 9, 2017
@ssalinas
ssalinas merged commit b4c92bc into s3uploader-upload-immediately Feb 10, 2017
@ssalinas
ssalinas deleted the immediate_upload_fixes branch June 8, 2017 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants