-
Notifications
You must be signed in to change notification settings - Fork 837
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
Azure helper: Increase Azure Endpoint HTTP retries #619
Azure helper: Increase Azure Endpoint HTTP retries #619
Conversation
…hod of AzureEndpointHttpClient
Pending internal discussions on what the error messages should be. |
@johnsonshi is this ready for review? Are we happy with the error messages and such at this point? Thanks! |
@mitechie yes we've discussed internally and these will be the final error messages. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much @johnsonshi for this branch. Minor nits on review. If this is acceptable, I can apply them or you can then we will land it.
Thanks you so much @blackboxsw! I've addressed the requested changes above. Let's wait for #594 to land before merging this. #594 is also about to be merged. Just addressed OddBloke's final set of minor requested changes and NITs in that other PR, so it should be mergeable once he reviews it. Given that #594 is more complicated than this PR, it will be easier to fix this PR if there are any merge conflicts. Also as a final validation, I built a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @johnsonshi this it good to land today.
Proposed Commit Message
Azure helper: Increase Azure Endpoint HTTP retries
Increase Azure Endpoint HTTP retries to handle
occasional platform network blips.
Introduce a common method
http_with_retries
in the azure.py helper, which will serve as
the common HTTP request handler for
all HTTP requests with the Azure endpoint.
This method has builtin retries and
reporting diagnostics logic.
Additional Context
Additional context above.
Test Steps
Ensure no regressions in pre-existing Azure endpoint interaction for happy path code
Ensure that long delay log message is logged, if there is a long delay (>5 sec) that eventually succeeds during interaction with the Azure endpoint.
http_with_retries
to fail during the first 15 attempts, and only succeed at the 16th attempt.Ensure that error messages are logged upon failure despite max attempt retries
http_with_retries
so that it fails after max attempts.Checklist: