GCP Bigtable Python客户端丢失了连接

时间:2017-10-16 20:05:00

标签: google-cloud-platform bigtable google-cloud-bigtable

我遇到了GCP Bigtable Python客户端的问题,它偶尔会丢失与Bigtable的连接并导致服务器错误。

错误消息附在下面。当我尝试写Bigtable时会发生这种情况。我还观察到,当服务器暂时处于非活动状态时,这个问题往往会更频繁地发生。

_Rendezvous: <_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Endpoint read failed)>
    at _end_unary_response_blocking (/env/local/lib/python2.7/site-packages/grpc/_channel.py:455)
    at __call__ (/env/local/lib/python2.7/site-packages/grpc/_channel.py:507)
    at commit (/env/local/lib/python2.7/site-packages/google/cloud/bigtable/row.py:417)
    at send (/env/local/lib/python2.7/site-packages/google/cloud/happybase/batch.py:113)
    at __exit__ (/env/local/lib/python2.7/site-packages/google/cloud/happybase/batch.py:275)
    at put (/env/local/lib/python2.7/site-packages/google/cloud/happybase/table.py:435)
    at write_row (/home/vmagent/app/app/v0/helpers/bigtable_util.py:26)
    at get_current_user (/home/vmagent/app/app/v0/controllers/controller.py:98)
    at dispatch_request (/env/local/lib/python2.7/site-packages/flask/app.py:1598)
    at full_dispatch_request (/env/local/lib/python2.7/site-packages/flask/app.py:1612)
    at handle_user_exception (/env/local/lib/python2.7/site-packages/flask/app.py:1517)
    at wrapped_function (/env/local/lib/python2.7/site-packages/flask_cors/extension.py:161)
    at full_dispatch_request (/env/local/lib/python2.7/site-packages/flask/app.py:1614)
    at wsgi_app (/env/local/lib/python2.7/site-packages/flask/app.py:1982)

有没有人有类似的经历?这是Bigtable Python Client中的已知错误吗?

2 个答案:

答案 0 :(得分:3)

这似乎已在https://github.com/googleapis/google-cloud-python/issues/2683中修复。

鉴于这是一个非常老的问题,我认为较新的版本应该已经解决了这个问题。

答案 1 :(得分:0)

到目前为止,我处理此问题的解决方案是在失败时进行手动重试。它对我们有用,因为问题不经常发生。此外,它似乎不是0.28.1版本中的问题