Skip to content

Fix streaming upload#670

Open
rikonen wants to merge 2 commits intoAzure:masterfrom
rikonen:fix-streaming-upload
Open

Fix streaming upload#670
rikonen wants to merge 2 commits intoAzure:masterfrom
rikonen:fix-streaming-upload

Conversation

@rikonen
Copy link
Copy Markdown

@rikonen rikonen commented Jun 25, 2020

Uploading blob that was read from source like pipe was not working correctly due to couple of bugs.

rikonen added 2 commits June 25, 2020 12:05
Source stream may return less data than what was requested and in case
size of the entire blob was not known this was not taken into account
when reading more data, sometimes resulting in all data being read from
the stream and sent in one chunk, which could end up being larger than
the maximum supported size.
_BlobChunkUploader called tell() on the source stream even though it did
not use the result for anything. If the stream was non-seekable this
just made the operation fail completely unnecessarily.
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jun 25, 2020

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.99%. Comparing base (9cbce66) to head (8ee7dd5).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #670   +/-   ##
=======================================
  Coverage   86.98%   86.99%           
=======================================
  Files          52       52           
  Lines        5288     5289    +1     
  Branches      566      567    +1     
=======================================
+ Hits         4600     4601    +1     
  Misses        515      515           
  Partials      173      173           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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