Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.

fix: add InternalServerError to list of expected errors#151

Merged
daniel-sanche merged 2 commits into
masterfrom
fix-test
Jan 12, 2021
Merged

fix: add InternalServerError to list of expected errors#151
daniel-sanche merged 2 commits into
masterfrom
fix-test

Conversation

@daniel-sanche

Copy link
Copy Markdown
Contributor

We are currently seeing a failure on the continuous CI tests for this repo. It looks like an internal server error is showing up on one of the list_logs calls. This fix adds that exception to the list of exceptions to retry

@daniel-sanche daniel-sanche requested review from a team January 11, 2021 22:57
@product-auto-label product-auto-label Bot added the api: logging Issues related to the googleapis/python-logging API. label Jan 11, 2021
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Jan 11, 2021
"""
inner = RetryResult(_has_entries, max_tries=9)(_consume_entries)
outer = RetryErrors((ServiceUnavailable, ResourceExhausted), max_tries=9)(inner)
outer = RetryErrors(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this is OK for the purposes of tests. For any changes to automatic retries in the client make sure to reference https://google.aip.dev/194 (it has guidance on error codes that should/shouldn't be retried).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good to know, thanks!

@daniel-sanche daniel-sanche merged commit 9bf49f5 into master Jan 12, 2021
@daniel-sanche daniel-sanche deleted the fix-test branch January 12, 2021 18:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: logging Issues related to the googleapis/python-logging API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants