You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 2, 2026. It is now read-only.
We recently updated from an older version of the storage NIO library and are now seeing ConcurrentModificationExceptions from CloudStorageFileSystem. At a guess, it seems like this function is perhaps not perfectly resilient if CONFIG_TO_PROVIDERS_MAP is updated while the existingProviders value is being iterated over?
Caused by: java.util.ConcurrentModificationException: null
at java.base/java.util.HashMap$HashIterator.nextNode(Unknown Source)
at java.base/java.util.HashMap$KeyIterator.next(Unknown Source)
at com.google.cloud.storage.contrib.nio.CloudStorageFileSystem.getCloudStorageFileSystemProvider(CloudStorageFileSystem.java:164)
at com.google.cloud.storage.contrib.nio.CloudStorageFileSystem.forBucket(CloudStorageFileSystem.java:196)
at [...our client code]
We recently updated from an older version of the storage NIO library and are now seeing
ConcurrentModificationExceptionsfromCloudStorageFileSystem. At a guess, it seems like this function is perhaps not perfectly resilient ifCONFIG_TO_PROVIDERS_MAPis updated while theexistingProvidersvalue is being iterated over?