-
Notifications
You must be signed in to change notification settings - Fork 24
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
No way to access an existing S3 bucket! #460
Comments
Agreed. I don't think there is a need for the |
Merged
closed by #463 |
markjschreiber
added a commit
that referenced
this issue
May 17, 2024
stefanofornari
pushed a commit
to stefanofornari/aws-java-nio-spi-for-s3
that referenced
this issue
May 20, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Creating a new S3 bucket through the
newFileSystem
API works properly. See the example below:Ultimately, I can find the new bucket
nbk325-test-bucket
successfully created. But if I run the following code (simply replacing thenewFileSystem
just created before bygetFileSystem
to access that bucket):my program crashes with this trace:
The reason for this failure is that the
getFileSystem
method inS3FileSystemProvider
expects to find the file system already cached, but it is not because at startup the in-memoryFS_CACHE
is of course empty!!In my opinion, the
create
flag does not make sense. I would suggest removing it and converting the code above to the following which works very well:The text was updated successfully, but these errors were encountered: