GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Frequent gRPC StatusCode.UNAVAILABLE errors · Issue #2693 · googleapis/google-cloud-python

Frequent gRPC StatusCode.UNAVAILABLE errors #2693

New issue
Copy link
New issue
Copy link
Closed
Closed
Frequent gRPC StatusCode.UNAVAILABLE errors#2693
Copy link
Assignees
dhermes
Labels
api: datastoreIssues related to the Datastore API.grpc

Description

@rishsriv
rishsriv
opened on Nov 5, 2016
Issue body actions

Of late, a small but significant (5-10%) of fetch operations to the Cloud Datastore seem to fail. They always succeed upon retry (which seems to be the prescribed way to solve the problem). However, the library should handle the retries IMO.

Here is the error traceback:

Traceback (most recent call last):
  File "/path/to/file.py", line 22, in get_client_id_dets
    res = list(query.fetch())
  File "/usr/local/lib/python2.7/dist-packages/google/cloud/datastore/query.py", line 463, in __iter__
    self.next_page()
  File "/usr/local/lib/python2.7/dist-packages/google/cloud/datastore/query.py", line 434, in next_page
    transaction_id=transaction and transaction.id,
  File "/usr/local/lib/python2.7/dist-packages/google/cloud/datastore/connection.py", line 538, in run_query
    response = self._datastore_api.run_query(project, request)
  File "/usr/local/lib/python2.7/dist-packages/google/cloud/datastore/connection.py", line 280, in run_query
    return self._stub.RunQuery(request_pb)
  File "/usr/local/lib/python2.7/dist-packages/grpc/_channel.py", line 481, in __call__
    return _end_unary_response_blocking(state, False, deadline)
  File "/usr/local/lib/python2.7/dist-packages/grpc/_channel.py", line 432, in _end_unary_response_blocking
    raise _Rendezvous(state, None, None, deadline)
_Rendezvous: <_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, {"created":"@1478303817.915316389","
description":"Secure read failed","file":"src/core/lib/security/transport/secure_endpoint.c","file_line":157,"grpc_
status":14,"referenced_errors":[{"created":"@1478303817.915244674","description":"EOF","file":"src/core/lib/iomgr/t
cp_posix.c","file_line":235}]})>

I'm using Ubuntu 16.04 on Google Compute Engine, with python 2.7.12 and google cloud version 0.20. I am making the request from a compute instance in the Asia region.

Activity

  1. daspecster
    added
    api: datastoreIssues related to the Datastore API.
    on Nov 5, 2016
  2. daspecster commented on Nov 5, 2016

    @daspecster
    daspecster
    on Nov 5, 2016
    Contributor
    More actions

    @rishsriv thanks for reporting!

    There has been talk of adding retry with exponential backoff to the library.
    Most recently, #2684 (comment).

    I would suggest using exponential backoff with your favorite Python retry library for now.

    There are a couple that seem to be alright.

    • https://pypi.python.org/pypi/retrying
    • https://pypi.python.org/pypi/retry/

    Also, I created #2694 to track where retry is needed and most helpful and design the interface.

  3. rishsriv commented on Nov 5, 2016

    @rishsriv
    rishsriv
    on Nov 5, 2016
    Author
    More actions

    @daspecter, thanks for the update!

  4. rishsriv
    changed the title [-]Frequent StatusCode.UNAVAILABLE errors while fetching from Cloud Datastore[/-] [+]Frequent gRPC StatusCode.UNAVAILABLE errors[/+] on Nov 7, 2016
  5. dhermes commented on Nov 7, 2016

    @dhermes
    dhermes
    on Nov 7, 2016
    Contributor
    More actions

    Closing as a dupe of #2683

  6. dhermes
    closed this as completedon Nov 7, 2016
  7. rishsriv
    added
    grpc
    on Nov 7, 2016
  8. JustinBeckwith
    assigned
    dhermes
    on Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dhermes
    dhermes

Labels

api: datastoreIssues related to the Datastore API.grpc

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.