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

Remove redundant future retry [RHELDST-9679] #32

Merged
merged 1 commit into from
Mar 4, 2024
Merged

Conversation

amcmahon-rh
Copy link
Contributor

Originally, the fast purge client would retry failed futures. Now with the HTTP retries it doesn't make sense to have both. The interaction between the two causes failing purges to run much longer than the desired 5 minutes.

This change removes the Future retry in favour of the urllib3 retry.

Originally, the fast purge client would retry failed futures. Now with
the HTTP retries it doesn't make sense to have both. The interaction
between the two causes failing purges to run much longer than the
desired 5 minutes.

This change removes the Future retry in favour of the urllib3 retry.
Copy link

codecov bot commented Feb 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (19a45cc) to head (cd35d73).

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #32   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines          150       150           
=========================================
  Hits           150       150           

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

@amcmahon-rh
Copy link
Contributor Author

@release-engineering/distribution ptal

@negillett
Copy link
Member

Surprised this repo doesn't have codeowners

Copy link
Member

@rohanpm rohanpm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not totally confident that this isn't somehow narrowing the set of errors which will be retried, because this was designed to retry all types of non-exiting exceptions while the retry policy on the HTTPAdapter is much more fine-grained.

Basically, this is changing things from "denylist" (retry every type of exception, unless explicitly not retried) to "allowlist" (retry only some specific types of exceptions). So please watch out for any new errors which might make it through to pushes due to this.

@amcmahon-rh
Copy link
Contributor Author

I did realise making that this change would narrow the scope of retries. However, given the retries were limited to a function that mainly just making a HTTP request and storing the result, I concluded the most likely errors would be HTTP related.

@amcmahon-rh amcmahon-rh merged commit 52479ca into master Mar 4, 2024
20 checks passed
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.

3 participants