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

NXDRIVE-2322: Do not retry a HTTP call that failed on 500 error #2071

Merged
merged 1 commit into from
Oct 8, 2020

Conversation

BoboTiG
Copy link
Contributor

@BoboTiG BoboTiG commented Oct 8, 2020

Retrying on HTTP 500 was leading to obscure issues when finalizing a transfer done via a third-party provider like S3.

Retrying on HTTP 500 was leading to obscure issues when finalizing
a transfer done via a third-party provider like S3.
@BoboTiG BoboTiG added the bugfix label Oct 8, 2020
@nuxeojenkins
Copy link
Contributor

View issue in JIRA: NXDRIVE-2322: Do not retry a HTTP call that failed on 500 error

@BoboTiG BoboTiG force-pushed the wip-NXDRIVE-2322-do-not-retry-on-http-error-500 branch 2 times, most recently from 6f4d5ce to 938c8b0 Compare October 8, 2020 16:18
@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Oct 8, 2020

Sourcery Code Quality Report

This PR has an average code quality of 83.17%

Quality metrics Before After Change
Complexity 1.87 ⭐
Method Length 44.15 ⭐
Working memory 7.19 🙂
Quality % 83.17% %
Other metrics Before After Change
Lines 689
Changed files Quality Before Quality After Quality Change
nxdrive/client/remote_client.py % 83.17% ⭐ %

Here are some functions in these files that still need a tune-up:

File Function Complexity Length Working Memory Quality Recommendation
nxdrive/client/remote_client.py Remote.download 8 ⭐ 302 ⛔ 20 ⛔ 33.02% 😞 Try splitting into smaller methods. Extract out complex expressions
nxdrive/client/remote_client.py Remote.transfer_end_callback 16 🙂 155 😞 14 😞 40.91% 😞 Try splitting into smaller methods. Extract out complex expressions
nxdrive/client/remote_client.py Remote.__init__ 5 ⭐ 152 😞 19 ⛔ 46.13% 😞 Try splitting into smaller methods. Extract out complex expressions
nxdrive/client/remote_client.py Remote.get_fs_children 10 🙂 75 🙂 10 😞 62.89% 🙂 Extract out complex expressions
nxdrive/client/remote_client.py Remote.get_info 5 ⭐ 85 🙂 10 😞 66.16% 🙂 Extract out complex expressions

Legend and Explanation

The emojis denote the absolute quality of the code:

  • ⭐ excellent
  • 🙂 good
  • 😞 poor
  • ⛔ very poor

The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request.


Please see our documentation here for details on how these metrics are calculated.

We are actively working on this report - lots more documentation and extra metrics to come!

Let us know what you think of it by mentioning @sourcery-ai in a comment.

@BoboTiG BoboTiG merged commit 63ccdc6 into master Oct 8, 2020
@BoboTiG BoboTiG deleted the wip-NXDRIVE-2322-do-not-retry-on-http-error-500 branch October 8, 2020 16:18
@BoboTiG BoboTiG added this to the 4.5.0 milestone Nov 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants