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 — Adding a retry for storage list_blobs(). by dhermes · Pull Request #2252 · googleapis/google-cloud-python

Conversation

@dhermes

@dhermes dhermes commented Sep 6, 2016

Copy link
Copy Markdown
Contributor

The storage API is not guaranteed to be strongly consistent, so we retry to allow for eventual consistency.

Came up in https://travis-ci.org/GoogleCloudPlatform/gcloud-python/builds/157997410

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dhermes dhermes added api: storage Issues related to the Cloud Storage API. testing flaky labels Sep 6, 2016
@dhermes dhermes assigned daspecster and tseaver Sep 6, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 6, 2016
@tseaver

tseaver commented Sep 6, 2016

Copy link
Copy Markdown
Contributor

LGTM

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Sep 6, 2016

Copy link
Copy Markdown
Contributor Author

I'm going to hold off merging this until #2223 is in.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes dhermes added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Sep 6, 2016
@dhermes
Adding a retry for storage list_blobs().
fe2b6db
The storage API is not guaranteed to be strongly
consistent, so we retry to allow for eventual
consistency.
@dhermes
dhermes force-pushed the storage-eventual-consistency-list branch from 4e8c9cc to fe2b6db Compare September 7, 2016 17:39
@dhermes dhermes removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Sep 7, 2016
@dhermes
dhermes merged commit 570cf29 into googleapis:master Sep 7, 2016
@dhermes
dhermes deleted the storage-eventual-consistency-list branch September 7, 2016 22:29
@dhermes dhermes mentioned this pull request Sep 9, 2016
'test_second_level': expected item missing in set #2275
Closed
dhermes added a commit to dhermes/google-cloud-python that referenced this pull request Sep 9, 2016
@dhermes
Retry entire test_paginate_files() storage system test.
733a5ac
This is not just "taking the easy way out", it's really
the most appropriate fix since there are so many
assertions that can fail due to eventual consistency. (For
example, asking for 2 blobs should have a next page when 3
are in the bucket, but this may break down due to eventual
consistency.)

Fixes googleapis#2217.

Also

- restoring test_second_level() to pre-googleapis#2252 (by retrying
  the entire test case)
- restoring test_list_files() to pre-googleapis#2181 (by retrying
  the entire test case)
- adding retries around remaining test cases that call
  list_blobs(): test_root_level_w_delimiter(),
  test_first_level() and test_third_level()
- adding a helper to empty a bucket in setUpClass() helper
  (which also uses list_blobs()) in both TestStoragePseudoHierarchy
  and TestStorageListFiles
dhermes added a commit to dhermes/google-cloud-python that referenced this pull request Sep 9, 2016
@dhermes
Retry entire test_paginate_files() storage system test.
da6b9eb
This is not just "taking the easy way out", it's really
the most appropriate fix since there are so many
assertions that can fail due to eventual consistency. (For
example, asking for 2 blobs should have a next page when 3
are in the bucket, but this may break down due to eventual
consistency.)

Fixes googleapis#2217.

Also

- restoring test_second_level() to pre-googleapis#2252 (by retrying
  the entire test case)
- restoring test_list_files() to pre-googleapis#2181 (by retrying
  the entire test case)
- adding retries around remaining test cases that call
  list_blobs(): test_root_level_w_delimiter(),
  test_first_level() and test_third_level()
- adding a helper to empty a bucket in setUpClass() helper
  (which also uses list_blobs()) in both TestStoragePseudoHierarchy
  and TestStorageListFiles
@dhermes dhermes mentioned this pull request Sep 9, 2016
Retry entire test_paginate_files() storage system test. #2293
Merged
@dhermes dhermes mentioned this pull request Sep 19, 2016
Cut 0.19.0 release. #2270
Merged
@theacodes theacodes unassigned daspecster Sep 28, 2018
parthea pushed a commit that referenced this pull request Nov 24, 2025
@renovate-bot @gcf-owl-bot
chore(deps): update all dependencies (#2252)
d8667ca
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Apr 1, 2026
@chelsea-lin
refactor: read table with system time for sqlglot compiler (#2252)
4567568
Fixes internal issue 459579873🦕
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@tseaver tseaver

Labels

api: storage Issues related to the Cloud Storage API. cla: yes This human has signed the Contributor License Agreement. testing

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@dhermes @tseaver @daspecster @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.