-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Adding a retry for storage list_blobs(). #2252
Merged
dhermes
merged 1 commit into
googleapis:master
from
dhermes:storage-eventual-consistency-list
Sep 7, 2016
Merged
Adding a retry for storage list_blobs(). #2252
dhermes
merged 1 commit into
googleapis:master
from
dhermes:storage-eventual-consistency-list
Sep 7, 2016
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dhermes
added
api: storage
Issues related to the Cloud Storage API.
testing
flaky
labels
Sep 6, 2016
googlebot
added
the
cla: yes
This human has signed the Contributor License Agreement.
label
Sep 6, 2016
LGTM |
I'm going to hold off merging this until #2223 is in. |
dhermes
added
the
do not merge
Indicates a pull request not ready for merge, due to either quality or timing.
label
Sep 6, 2016
The storage API is not guaranteed to be strongly consistent, so we retry to allow for eventual consistency.
dhermes
force-pushed
the
storage-eventual-consistency-list
branch
from
September 7, 2016 17:39
4e8c9cc
to
fe2b6db
Compare
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
added a commit
to dhermes/google-cloud-python
that referenced
this pull request
Sep 9, 2016
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
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
Merged
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.
cla: yes
This human has signed the Contributor License Agreement.
testing
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.
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