Skip to content

Core: Mark 502 and 504 statuses as retryable to the REST exponential retry strategy#9885

Merged
amogh-jahagirdar merged 1 commit into
apache:mainfrom
amogh-jahagirdar:add-gateway-failures-as-retryable
Mar 9, 2024
Merged

Core: Mark 502 and 504 statuses as retryable to the REST exponential retry strategy#9885
amogh-jahagirdar merged 1 commit into
apache:mainfrom
amogh-jahagirdar:add-gateway-failures-as-retryable

Conversation

@amogh-jahagirdar

Copy link
Copy Markdown
Contributor

Bad gateway or gateway timeouts should be able to be safely retried. A bad gateway could be caused by a load balancer or proxy between the client and the actual server, when there's some network partition between the LB and server. A retry in this case could route the request to another server.

A gateway timeout could occur when the LB/proxy is waiting for a response from the actual server, but it takes too long. in this case a retry could be performed again to increase the chance of hitting a more available server.

@github-actions github-actions Bot added the core label Mar 6, 2024
@amogh-jahagirdar amogh-jahagirdar changed the title Core: Mark 502 and 504 failures as retryable to the exponential retry strategy Core: Mark 502 and 504 statuses as retryable to the REST exponential retry strategy Mar 7, 2024
@amogh-jahagirdar

Copy link
Copy Markdown
Contributor Author

Thanks for the review @nastra !

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