-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Bigtable: Add retry parameter to 'Table.read_rows()'. #6281
Bigtable: Add retry parameter to 'Table.read_rows()'. #6281
Conversation
@sumit-ql, there's an error in CircleCI: /var/code/gcp/bigtable/google/cloud/bigtable/row_data.py:docstring of google.cloud.bigtable.row_data.DEFAULT_RETRY_READ_ROWS:3:Inline interpreted text or phrase reference start-string without end-string. |
@@ -333,7 +355,8 @@ class PartialRowsData(object): | |||
STATE_ROW_IN_PROGRESS: ROW_IN_PROGRESS, | |||
STATE_CELL_IN_PROGRESS: CELL_IN_PROGRESS} | |||
|
|||
def __init__(self, read_method, request): | |||
def __init__(self, read_method, request, | |||
retry=DEFAULT_RETRY_READ_ROWS): |
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.
predicate=_retry_read_rows_exception, | ||
deadline=60) | ||
return retry_(self._read_next, on_error=self._on_error)() | ||
return self.retry(self._read_next, on_error=self._on_error)() |
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.
@@ -340,7 +350,7 @@ def read_rows(self, start_key=None, end_key=None, limit=None, | |||
data_client = self._instance._client.table_data_client | |||
return PartialRowsData( | |||
data_client.transport.read_rows, | |||
request_pb) | |||
request_pb, retry) |
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.
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.
@tseaver Done the changes suggested by you. Please review. |
Closes #6186