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

[client/fetcher] Retry 502, 503, and 504 HTTP Codes #230

Merged
merged 5 commits into from
Nov 6, 2020

Conversation

patrick-ogrady
Copy link
Contributor

In some cases, intermediate services will return a 502, 503, or 504 HTTP status code before making a request to a Rosetta implementation. This can cause clients to error hard instead of retrying gracefully. This PR ensures we treat these errors as retriable.

Changes

  • return retriable error from client
  • respect ErrRetriable in fetcher

@patrick-ogrady patrick-ogrady changed the title [client/fetcher] Retry 502, 503, and 504 [client/fetcher] Retry 502, 503, and 504 HTTP Codes Nov 6, 2020
@coveralls
Copy link

Pull Request Test Coverage Report for Build 10946

  • 5 of 5 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 79.139%

Totals Coverage Status
Change from base Build 10906: 0.02%
Covered Lines: 7390
Relevant Lines: 9338

💛 - Coveralls

@patrick-ogrady patrick-ogrady merged commit 0322f7b into master Nov 6, 2020
@patrick-ogrady patrick-ogrady deleted the patrick/retry-transient-http-codes branch November 6, 2020 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants