GeezerVison is showing github.com — Handle eventally consistent blob lists in storage ITs by mziccard · Pull Request #704 · googleapis/google-cloud-java
Conversation
This PR tries to make tests that involve listing blobs less fragile.
It adds a timeout to such tests and makes them wait for the list to be of the expected size. If the expected size is never reached the test fails due to the timeout.
After the size is reached the tests check for the proper blobs to be in the list.
We could consider removing timeout+size-check but that would make the tests pass also when an empty list is returned.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
int index = 0;
|
|
|
// Listing blobs is eventually consistent, we loop until the list is of the expected size. The
|
|
|
// test fails if timeout is reached.
|
|
|
while (Iterators.size(page.values().iterator()) != 2) {
|
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Looks good. Feel free to merge with or without my suggestion.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
mziccard
added a commit
that referenced
this pull request
Mar 3, 2016
Handle eventally consistent blob lists in storage ITs
github-actions Bot
pushed a commit
to suztomo/google-cloud-java
that referenced
this pull request
Jun 29, 2022
… to v2.11.0 (googleapis#704)
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.errorprone:error_prone_annotations](https://errorprone.info) ([source](https://togithub.com/google/error-prone)) | `2.10.0` -> `2.11.0` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
---
### Release Notes
<details>
<summary>google/error-prone</summary>
### [`v2.11.0`](https://togithub.com/google/error-prone/releases/v2.11.0)
[Compare Source](https://togithub.com/google/error-prone/compare/v2.10.0...v2.11.0)
Error Prone now requires JDK 11 or newer ([https://github.com/google/error-prone/issues/2730](https://togithub.com/google/error-prone/issues/2730)).
New checks
- [`AutoValueBuilderDefaultsInConstructor`](http://errorprone.info/bugpattern/AutoValueBuilderDefaultsInConstructor)
- [`FloggerLogString`](http://errorprone.info/bugpattern/FloggerLogString)
- [`UnicodeDirectionalityCharacters`](http://errorprone.info/bugpattern/UnicodeDirectionalityCharacters)
- [`UnicodeInCode`](http://errorprone.info/bugpattern/UnicodeInCode)
- [`AlreadyChecked`](http://errorprone.info/bugpattern/AlreadyChecked)
- [`BugPatternNaming`](http://errorprone.info/bugpattern/BugPatternNaming)
- [`MissingImplementsComparable`](http://errorprone.info/bugpattern/MissingImplementsComparable)
- [`NegativeCharLiteral`](http://errorprone.info/bugpattern/NegativeCharLiteral)
- [`PreferredInterfaceType`](http://errorprone.info/bugpattern/PreferredInterfaceType)
- [`StronglyTypeByteString`](http://errorprone.info/bugpattern/StronglyTypeByteString)
- [`UsingJsr305CheckReturnValue`](http://errorprone.info/bugpattern/UsingJsr305CheckReturnValue)
Fixed issues: [#&googleapis#8203;2641](https://togithub.com/google/error-prone/issues/2641), [#&googleapis#8203;2705](https://togithub.com/google/error-prone/issues/2705), [#&googleapis#8203;2776](https://togithub.com/google/error-prone/issues/2776), [#&googleapis#8203;2798](https://togithub.com/google/error-prone/issues/2798), [#&googleapis#8203;2799](https://togithub.com/google/error-prone/issues/2799), [#&googleapis#8203;2819](https://togithub.com/google/error-prone/issues/2819), [#&googleapis#8203;2820](https://togithub.com/google/error-prone/issues/2820), [#&googleapis#8203;2831](https://togithub.com/google/error-prone/issues/2831), [#&googleapis#8203;2833](https://togithub.com/google/error-prone/issues/2833), [#&googleapis#8203;2834](https://togithub.com/google/error-prone/issues/2834), [#&googleapis#8203;2835](https://togithub.com/google/error-prone/issues/2835), [#&googleapis#8203;2861](https://togithub.com/google/error-prone/issues/2861), [#&googleapis#8203;2873](https://togithub.com/google/error-prone/issues/2873), [#&googleapis#8203;2889](https://togithub.com/google/error-prone/issues/2889), [#&googleapis#8203;2892](https://togithub.com/google/error-prone/issues/2892), [#&googleapis#8203;2901](https://togithub.com/google/error-prone/issues/2901)
**Full Changelog**: google/error-prone@v2.10.0...v2.11.0
</details>
---
### Configuration
📅 **Schedule**: At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.
---
This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-resourcemanager).
meltsufin
pushed a commit
that referenced
this pull request
Dec 22, 2025
change while() condition in testListLogEntriesSample() code.
instead of waiting for first printed log entry it waits for the entry
with designated payload. test will timeout after minute or succeed.
Fixes #692
chingor13
pushed a commit
that referenced
this pull request
Feb 24, 2026
Release-As: 1.0.0
feat!: updating google-auth-library-java min Java version to 1.8
suztomo
pushed a commit
to suztomo/google-cloud-java
that referenced
this pull request
Mar 11, 2026
change while() condition in testListLogEntriesSample() code.
instead of waiting for first printed log entry it waits for the entry
with designated payload. test will timeout after minute or succeed.
Fixes googleapis#692
chingor13
pushed a commit
that referenced
this pull request
Mar 12, 2026
Release-As: 1.0.0
feat!: updating google-auth-library-java min Java version to 1.8
suztomo
pushed a commit
to suztomo/google-cloud-java
that referenced
this pull request
Mar 23, 2026
suztomo
pushed a commit
to suztomo/google-cloud-java
that referenced
this pull request
Mar 23, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
api: storage
Issues related to the Cloud Storage API.
cla: yes
This human has signed the Contributor License Agreement.
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.
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.
|