Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Python API: rework EC upload code #1814

Merged
merged 4 commits into from
Jun 20, 2019
Merged

Conversation

fvennetier
Copy link
Member

@fvennetier fvennetier commented Jun 17, 2019

SUMMARY

The previous code may have considered as successes some uploads that had failed (removing elements from the list we are iterating on is a bad thing). Now we build a list with only the chunks which do not see any error yet.

Also, parallelize the upload of the trailers, so a slow chunk upload does not block the termination of the other chunk uploads.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME
  • Python API
SDS VERSION
openio 4.5.2.dev4

The previous code may have considered as successes some uploads that
had failed.
@fvennetier fvennetier changed the title Python API: change how we count successful EC uploads Python API: improve EC upload code Jun 18, 2019
Rework the EC upload code to make it more readable.
Also, parallelize the upload of the trailers, so a slow chunk upload
does not block the termination of the other chunk uploads.
@racciari
Copy link
Contributor

LGTM

@fvennetier fvennetier changed the title Python API: improve EC upload code Python API: rework EC upload code Jun 20, 2019
@fvennetier fvennetier merged commit f115447 into open-io:4.5.x Jun 20, 2019
@fvennetier fvennetier deleted the count-successes branch June 20, 2019 15:27
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants