Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Retry Zarr entry uploads that fail with "header ... implies functionality ... not implemented" #1048

Merged
merged 1 commit into from
Jul 8, 2022

Conversation

jwodder
Copy link
Member

@jwodder jwodder commented Jul 7, 2022

Closes #1033.

It turns out the idea I had to get the filesize ourselves and retry failures wouldn't work, as requests ignores user-supplied "Content-Length" headers. Hence, we have to actually do the request and retry that.

An alternative approach would be to read the entire file into memory and PUT that, but I suspect the files get large enough that we want to avoid that.

@jwodder jwodder added patch Increment the patch version when merged tests Add or improve existing tests labels Jul 7, 2022
@codecov
Copy link

codecov bot commented Jul 7, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.42%. Comparing base (9ce5b1e) to head (616ecfc).
Report is 1065 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1048      +/-   ##
==========================================
+ Coverage   88.41%   88.42%   +0.01%     
==========================================
  Files          71       71              
  Lines        9147     9149       +2     
==========================================
+ Hits         8087     8090       +3     
+ Misses       1060     1059       -1     
Flag Coverage Δ
unittests 88.42% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@yarikoptic yarikoptic added the release Create a release when this pr is merged label Jul 7, 2022
@yarikoptic
Copy link
Member

looks LGTM, thanks @jwodder. Added release label. But why you added tests label if there is not even one added?

@jwodder jwodder removed the tests Add or improve existing tests label Jul 7, 2022
@jwodder
Copy link
Member Author

jwodder commented Jul 7, 2022

@yarikoptic That was a mistake, and I thought I got rid of it.

@yarikoptic
Copy link
Member

sorry for the delay, let's contribute to the race of the releases! (just merged another release PR). Thank you @jwodder !

@yarikoptic yarikoptic merged commit 26f6cf2 into master Jul 8, 2022
@yarikoptic yarikoptic deleted the gh-1033 branch July 8, 2022 16:30
@github-actions
Copy link

github-actions bot commented Jul 8, 2022

🚀 PR was released in 0.44.1 🚀

@jwodder jwodder added the HIFNI Zarr uploads failing with "A header you provided implies functionality that is not implemented" label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HIFNI Zarr uploads failing with "A header you provided implies functionality that is not implemented" patch Increment the patch version when merged release Create a release when this pr is merged released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error during upload, "A header you provided implies functionality that is not implemented"
2 participants