Title: BigTable: row.commit throwing _Rendezvous exception instead of ServiceUnavailable · Issue #4656 · googleapis/google-cloud-python · GitHub
Open Graph Title: BigTable: row.commit throwing _Rendezvous exception instead of ServiceUnavailable · Issue #4656 · googleapis/google-cloud-python
X Title: BigTable: row.commit throwing _Rendezvous exception instead of ServiceUnavailable · Issue #4656 · googleapis/google-cloud-python
Description: We are using retry.py and creating a retry exception predicate as follows: predicate=retry.if_exception_type(exceptions.ServiceUnavailable) However, since we are only getting _Rendezvous exceptions with StatusCode.UNAVAILABLE (see below ...
Open Graph Description: We are using retry.py and creating a retry exception predicate as follows: predicate=retry.if_exception_type(exceptions.ServiceUnavailable) However, since we are only getting _Rendezvous exceptions...
X Description: We are using retry.py and creating a retry exception predicate as follows: predicate=retry.if_exception_type(exceptions.ServiceUnavailable) However, since we are only getting _Rendezvous exceptions...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/4656
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"BigTable: row.commit throwing _Rendezvous exception instead of ServiceUnavailable","articleBody":"We are using `retry.py` and creating a retry exception predicate as follows:\r\n\r\n```python\r\npredicate=retry.if_exception_type(exceptions.ServiceUnavailable)\r\n```\r\n\r\nHowever, since we are only getting `_Rendezvous` exceptions with `StatusCode.UNAVAILABLE` (see below stack trace), we had to change this to:\r\n\r\n```python\r\npredicate=retry.if_exception_type(exceptions.GrpcRendezvous)\r\n```\r\n\r\nI see a different issue in cloud datastore for mapping gRPC codes to service level exceptions: \r\n\r\nhttps://github.com/GoogleCloudPlatform/google-cloud-python/pull/2590\r\n\r\nWill this also be done for cloud bigtable?\r\n\r\nStack Trace:\r\n\r\n```python\r\n File \"single_key_read_write.py\", line 135, in write\r\n row.commit()\r\n File \"/home/jenkins/.local/lib/python3.5/site-packages/google/cloud/bigtable/row.py\", line 445, in commit\r\n retry_(retry_commit)()\r\n File \"/home/jenkins/.local/lib/python3.5/site-packages/google/api_core/retry.py\", line 261, in retry_wrapped_func\r\n on_error=on_error,\r\n File \"/home/jenkins/.local/lib/python3.5/site-packages/google/api_core/retry.py\", line 178, in retry_target\r\n return target()\r\n File \"/home/jenkins/.local/lib/python3.5/site-packages/google/cloud/bigtable/row.py\", line 256, in __call__\r\n client._data_stub.MutateRow(self.request_pb)\r\n File \"/home/jenkins/.local/lib/python3.5/site-packages/grpc/_channel.py\", line 492, in __call__\r\n return _end_unary_response_blocking(state, call, False, deadline)\r\n File \"/home/jenkins/.local/lib/python3.5/site-packages/grpc/_channel.py\", line 440, in _end_unary_response_blocking\r\n raise _Rendezvous(state, None, None, deadline)\r\ngrpc._channel._Rendezvous: \u003c_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Transport closed)\u003e\r\n```\r\n","author":{"url":"https://github.com/zakons","@type":"Person","name":"zakons"},"datePublished":"2017-12-22T13:09:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/4656/google-cloud-python/issues/4656"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2b24d713-1428-bd98-a4a5-67c75cde66de |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9E70:162B2:4C448A:6C9514:6A4E70B1 |
| html-safe-nonce | 54ba5ffae68a363ac2bf2890a9b0b5ae8e46c4d778900d9b3001001e83fd7101 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTcwOjE2MkIyOjRDNDQ4QTo2Qzk1MTQ6NkE0RTcwQjEiLCJ2aXNpdG9yX2lkIjoiNjAzMDE3MjA2MTQ2ODM1Njc4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4bc601e07dae5e8c1bb71274b5c0f6f9961850e874b22a44aad761be42e9ccd4 |
| hovercard-subject-tag | issue:284159771 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/4656/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a116d609d565f1ca6ec6c1e9a774a0fdc35ea1877637dd1e382db4651bc5072c/googleapis/google-cloud-python/issues/4656 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a116d609d565f1ca6ec6c1e9a774a0fdc35ea1877637dd1e382db4651bc5072c/googleapis/google-cloud-python/issues/4656 |
| og:image:alt | We are using retry.py and creating a retry exception predicate as follows: predicate=retry.if_exception_type(exceptions.ServiceUnavailable) However, since we are only getting _Rendezvous exceptions... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zakons |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width