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 — replace HashMap with ConcurrentHashMap to avoid ConcurrentModificatio… by oshai · Pull Request #883 · googleapis/java-storage-nio

This repository was archived by the owner on Jun 2, 2026. It is now read-only.

Conversation

@oshai

@oshai oshai commented Apr 10, 2022 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

replace HashMap with ConcurrentHashMap to avoid ConcurrentModificationException

avoids this exception:

Caused by: java.lang.RuntimeException: java.util.ConcurrentModificationException with message: null
	at java.util.HashMap$HashIterator.nextNode(HashMap.java:1511)
	at java.util.HashMap$ValueIterator.next(HashMap.java:1539)
	at com.google.cloud.storage.contrib.nio.testing.FakeStorageRpc.list(FakeStorageRpc.java:153)
	at com.google.cloud.storage.StorageImpl.lambda$listBlobs$11(StorageImpl.java:391)
	at com.google.api.gax.retrying.DirectRetryingExecutor.submit(DirectRetryingExecutor.java:105)
	at com.google.cloud.RetryHelper.run(RetryHelper.java:76)
	at com.google.cloud.RetryHelper.runWithRetries(RetryHelper.java:50)
	at com.google.cloud.storage.Retrying.run(Retrying.java:51)

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> ☕️

If you write sample code, please follow the samples format.

Sorry, something went wrong.

Uh oh!

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

All reactions
@oshai
replace HashMap with ConcurrentHashMap to avoid ConcurrentModificatio…
d4ad799
…nException

avoids this exception:
```
Caused by: java.lang.RuntimeException: java.util.ConcurrentModificationException with message: null
	at java.util.HashMap$HashIterator.nextNode(HashMap.java:1511)
	at java.util.HashMap$ValueIterator.next(HashMap.java:1539)
	at com.google.cloud.storage.contrib.nio.testing.FakeStorageRpc.list(FakeStorageRpc.java:153)
	at com.google.cloud.storage.StorageImpl.lambda$listBlobs$11(StorageImpl.java:391)
	at com.google.api.gax.retrying.DirectRetryingExecutor.submit(DirectRetryingExecutor.java:105)
	at com.google.cloud.RetryHelper.run(RetryHelper.java:76)
	at com.google.cloud.RetryHelper.runWithRetries(RetryHelper.java:50)
	at com.google.cloud.storage.Retrying.run(Retrying.java:51)
```
@oshai
oshai requested a review from a team April 10, 2022 14:12
@product-auto-label product-auto-label Bot added size: s Pull request size is small. api: storage Issues related to the googleapis/java-storage-nio API. labels Apr 10, 2022
BenWhitehead
BenWhitehead approved these changes Apr 11, 2022
View reviewed changes
@BenWhitehead BenWhitehead added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 11, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 11, 2022
@BenWhitehead BenWhitehead added the owlbot:run Add this label to trigger the Owlbot post processor. label Apr 11, 2022
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Apr 11, 2022
@gcf-owl-bot
🦉 Updates from OwlBot post-processor
2d0951a
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
@BenWhitehead BenWhitehead added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 11, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 11, 2022
@BenWhitehead
BenWhitehead merged commit d2fe2a0 into googleapis:main Apr 11, 2022
@release-please release-please Bot mentioned this pull request Apr 11, 2022
chore(main): release 0.123.28 #879
Merged
@oshai
oshai deleted the patch-1 branch April 14, 2022 12:25
gcf-merge-on-green Bot pushed a commit that referenced this pull request Apr 19, 2022
@release-please
chore(main): release 0.123.28 (#879)
29707f5
🤖 I have created a release *beep* *boop*
---


### [0.123.28](v0.123.27...v0.123.28) (2022-04-18)


### Bug Fixes

* **native:** initialize classes at build-time to fix Native Image compilation ([#874](#874)) ([df905cb](df905cb))
* **test:** replace HashMap with ConcurrentHashMap to avoid ConcurrentModificatio… ([#883](#883)) ([d2fe2a0](d2fe2a0))


### Dependencies

* update dependency com.google.apis:google-api-services-storage to v1-rev20220401-1.32.1 ([#881](#881)) ([a598199](a598199))
* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 ([#884](#884)) ([c08f115](c08f115))
* update dependency com.google.cloud:google-cloud-storage to v2.6.0 ([#878](#878)) ([0bd1985](0bd1985))
* update dependency com.google.cloud:google-cloud-storage to v2.6.1 ([#885](#885)) ([cf24525](cf24525))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
suztomo pushed a commit to googleapis/google-cloud-java that referenced this pull request Mar 30, 2026
@release-please
chore(main): release 0.123.28 (#879)
677ef62
🤖 I have created a release *beep* *boop*
---


### [0.123.28](googleapis/java-storage-nio@v0.123.27...v0.123.28) (2022-04-18)


### Bug Fixes

* **native:** initialize classes at build-time to fix Native Image compilation ([#874](googleapis/java-storage-nio#874)) ([22f1464](googleapis/java-storage-nio@22f1464))
* **test:** replace HashMap with ConcurrentHashMap to avoid ConcurrentModificatio… ([#883](googleapis/java-storage-nio#883)) ([31f823c](googleapis/java-storage-nio@31f823c))


### Dependencies

* update dependency com.google.apis:google-api-services-storage to v1-rev20220401-1.32.1 ([#881](googleapis/java-storage-nio#881)) ([4f89adc](googleapis/java-storage-nio@4f89adc))
* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 ([#884](googleapis/java-storage-nio#884)) ([9d06c27](googleapis/java-storage-nio@9d06c27))
* update dependency com.google.cloud:google-cloud-storage to v2.6.0 ([#878](googleapis/java-storage-nio#878)) ([425f3de](googleapis/java-storage-nio@425f3de))
* update dependency com.google.cloud:google-cloud-storage to v2.6.1 ([#885](googleapis/java-storage-nio#885)) ([8329458](googleapis/java-storage-nio@8329458))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
lqiu96 pushed a commit to googleapis/google-cloud-java that referenced this pull request Apr 1, 2026
@release-please
chore(main): release 0.123.28 (#879)
f39b482
🤖 I have created a release *beep* *boop*
---


### [0.123.28](googleapis/java-storage-nio@v0.123.27...v0.123.28) (2022-04-18)


### Bug Fixes

* **native:** initialize classes at build-time to fix Native Image compilation ([#874](googleapis/java-storage-nio#874)) ([22f1464](googleapis/java-storage-nio@22f1464))
* **test:** replace HashMap with ConcurrentHashMap to avoid ConcurrentModificatio… ([#883](googleapis/java-storage-nio#883)) ([31f823c](googleapis/java-storage-nio@31f823c))


### Dependencies

* update dependency com.google.apis:google-api-services-storage to v1-rev20220401-1.32.1 ([#881](googleapis/java-storage-nio#881)) ([4f89adc](googleapis/java-storage-nio@4f89adc))
* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 ([#884](googleapis/java-storage-nio#884)) ([9d06c27](googleapis/java-storage-nio@9d06c27))
* update dependency com.google.cloud:google-cloud-storage to v2.6.0 ([#878](googleapis/java-storage-nio#878)) ([425f3de](googleapis/java-storage-nio@425f3de))
* update dependency com.google.cloud:google-cloud-storage to v2.6.1 ([#885](googleapis/java-storage-nio#885)) ([8329458](googleapis/java-storage-nio@8329458))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@BenWhitehead BenWhitehead BenWhitehead approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

No one assigned

Labels

api: storage Issues related to the googleapis/java-storage-nio API. size: s Pull request size is small.

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.

3 participants

@oshai @BenWhitehead @yoshi-kokoro
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.