-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Handle retry=None for mutate_rows, and some refactoring in test #4341
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
Handle retry=None for mutate_rows, and some refactoring in test #4341
Conversation
Raise a custom error for Retry strategy instead of a fake standard error.
|
This is also a follow up on #4256 |
bigtable/tests/unit/test_table.py
Outdated
| SUCCESS = 0 | ||
| RETRYABLE_1 = 4 | ||
| RETRYABLE_2 = 10 | ||
| NON_RETRYABLE = 1 |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
@dhermes Can you help setting the relevant label(s) to the PR? Should we normally set assignee as well? I could update neither though. |
/cc @dhermes
As discussed in #4333, this change addresses the input retry=None for
mutate_rows. @jonparrott I made an internal error_BigtableRetryableErrorand have it be used to trigger the retry instead of raising a fakeSerivceUnavailable. Would like to get your opinion regarding this use.Also factored out test response creation and replaced the magic numbers with constants for RPC Status Code. And removed the extra
thefrom the error message.