Skip to content
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

Storage: Flaky 503 on list_blobs #8376

Closed
bencaine1 opened this issue Jun 17, 2019 · 2 comments
Closed

Storage: Flaky 503 on list_blobs #8376

bencaine1 opened this issue Jun 17, 2019 · 2 comments
Assignees
Labels
api: storage Issues related to the Cloud Storage API. status: duplicate Duplicate. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@bencaine1
Copy link

Environment details

OS: Linux dc32b7e8763a 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64 x86_64 x86_64 GNU/Linux
Python version: Python 2.7.6
google-cloud-storage: 1.13.1

Code example

from google.cloud import storage
gs_client = storage.Client('my-project')
bucket = storage.bucket.Bucket(gs_client, 'my-bucket')
blobs = self.gs_bucket.list_blobs(prefix='my-folder')  # flaky failure from this line

Stack trace

  File "/opt/conda/lib/python2.7/site-packages/google/api_core/page_iterator.py", line 204, in _items_iter
    for page in self._page_iter(increment=False):
  File "/opt/conda/lib/python2.7/site-packages/google/api_core/page_iterator.py", line 235, in _page_iter
    page = self._next_page()
  File "/opt/conda/lib/python2.7/site-packages/google/api_core/page_iterator.py", line 361, in _next_page
    response = self._get_next_page_response()
  File "/opt/conda/lib/python2.7/site-packages/google/api_core/page_iterator.py", line 411, in _get_next_page_response
    method=self._HTTP_METHOD, path=self.path, query_params=params
  File "/opt/conda/lib/python2.7/site-packages/google/cloud/_http.py", line 319, in api_request
    raise exceptions.from_http_response(response)
google.api_core.exceptions.ServiceUnavailable: 503 GET https://www.googleapis.com/storage/v1/b/pm-results-prod/o?prefix=temp%2FInbound%2FCMS-Prod-20190617135540%2F4000192377%2F4000192377-Prod-export_result-31115705099441&projection=noAcl: Backend Error

This is a flaky error. It would be great if the library could retry when this happens!

@yoshi-automation yoshi-automation added the triage me I really want to be triaged. label Jun 18, 2019
@agraubert
Copy link

👍 Also experiencing intermittent 503's

@tseaver tseaver added api: storage Issues related to the Cloud Storage API. flaky testing type: process A process-related concern. May include testing, release, or the like. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. status: duplicate Duplicate. and removed triage me I really want to be triaged. flaky testing type: process A process-related concern. May include testing, release, or the like. labels Jun 18, 2019
@tseaver
Copy link
Contributor

tseaver commented Jun 18, 2019

Duplicates #7907.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API. status: duplicate Duplicate. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

4 participants