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: recompute deadline after data upload success #1771

Merged
merged 2 commits into from
May 15, 2019

Conversation

fvennetier
Copy link
Member

SUMMARY

At some point in the upload process, we know that the metadata server is fine (it provided us with chunk addresses) and the client is still listening (he just uploaded all data). It seems a good idea to postpone the deadline (because it is computed from the client-provided timeout).

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME
  • Python API
SDS VERSION
openio 5.0.0.0b1.dev7
ADDITIONAL INFORMATION

This modification will allow slow uploads to take longer than read_timeout, provided the client is still sending data from time to time.

@codecov-io
Copy link

Codecov Report

Merging #1771 into master will decrease coverage by 0.01%.
The diff coverage is 86.85%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1771      +/-   ##
==========================================
- Coverage   79.19%   79.19%   -<.01%     
==========================================
  Files         379      379              
  Lines       70001    70023      +22     
  Branches     6878     6879       +1     
==========================================
+ Hits        55428    55445      +17     
- Misses      14370    14376       +6     
+ Partials      203      202       -1
Impacted Files Coverage Δ
oio/common/utils.py 70.43% <100%> (+2.48%) ⬆️
tests/unit/api/test_utils.py 100% <100%> (ø) ⬆️
oio/api/object_storage.py 83.11% <50%> (+0.13%) ⬆️
oio/api/io.py 85.98% <71.43%> (-0.19%) ⬇️
tests/unit/api/test_container_client.py 92.86% <0%> (-7.14%) ⬇️
oio/ecd/app.py 60.12% <0%> (-5.95%) ⬇️
oio/conscience/client.py 83.91% <0%> (-4.59%) ⬇️
server/slab.c 83.77% <0%> (-1.29%) ⬇️
metautils/lib/utils_sockets.c 42.31% <0%> (-1.15%) ⬇️
meta2v2/meta2_filters_action_container.c 59.73% <0%> (-1.04%) ⬇️
... and 29 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e83bfe2...44f44e8. Read the comment docs.

@fvennetier fvennetier force-pushed the recompute-deadline branch from 44f44e8 to 3c4f13c Compare May 15, 2019 12:33
@fvennetier fvennetier changed the base branch from master to 4.4.x May 15, 2019 12:34
At some point in the upload process, we know that the metadata server
is fine (it provided us with chunk addresses) and the client is still
listening (he just uploaded all data). It seems a good idea to
postpone the deadline.
@fvennetier fvennetier force-pushed the recompute-deadline branch from 3c4f13c to a645d04 Compare May 15, 2019 12:49
@fvennetier fvennetier merged commit 611f532 into open-io:4.4.x May 15, 2019
@fvennetier fvennetier deleted the recompute-deadline branch May 15, 2019 15:32
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants