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

ClientRetryPolicy: Fixes behavior to handling of 503 HTTP errors #3479

Merged
merged 2 commits into from
Sep 30, 2022

Conversation

NaluTripician
Copy link
Contributor

@NaluTripician NaluTripician commented Sep 29, 2022

Pull Request Template

Description

#3008 introduced a regression on the cross-region handling for 503s.

This PR added different substatus codes for 503s to identify different scenarios (was the 503 from client side connectivity issues, did the 503 came from the service, was it due to quorum loss, etc) which gives actionable details to components and consumers of these 503s.

But the ClientRetryPolicy was not adjusted to reflect this behavior with the new combination of substatus codes, the code is still checking for substatus 0. Changed the behavior to handle the new 503 status codes along with tests to avoid future regressions.

Type of change

Please delete options that are not relevant.

  • [] Bug fix (non-breaking change which fixes an issue)

Closing issues

To automatically close an issue: closes #3478

Copy link
Member

@ealsur ealsur left a comment

Choose a reason for hiding this comment

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

Nice work, let's please add the extra tests

@imanvt
Copy link
Contributor

imanvt commented Sep 29, 2022

Great work with the quick turnaround on the fix for the regression. Left one minor comment

Copy link
Member

@ealsur ealsur left a comment

Choose a reason for hiding this comment

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

Thanks for adding the tests, great work!

@ealsur ealsur merged commit dfe1fac into master Sep 30, 2022
@ealsur ealsur deleted the users/nalutripician/503SubstatusHandeling branch September 30, 2022 14:54
@NaluTripician NaluTripician restored the users/nalutripician/503SubstatusHandeling branch September 30, 2022 18:15
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.

[BUG] Handling of HTTP 503s for cross-region
4 participants