Skip to content

s3fs-nio trying to put back an object downloaded from the bucket #715

Open
@stefanofornari

Description

@stefanofornari

Bug Description

s3fs-nio trying to put back an object downloaded from the bucket as per stack trace:

at org.carlspring.cloud.storage.s3fs.S3SeekableByteChannel.sync(S3SeekableByteChannel.java:182)
at org.carlspring.cloud.storage.s3fs.S3SeekableByteChannel.close(S3SeekableByteChannel.java:146)
at java.base/sun.nio.ch.ChannelInputStream.close(ChannelInputStream.java:279)

Steps To Reproduce

FileSystem fs = FileSystems.newFileSystem(URI.create(file), new HashMap<>());
Path p = fs.getPath(new URI(file).getPath());
Files.readAllBytes(p);

Expected Behavior

The object is downloaded without sync back its content

Environment

  • s3fs-nio version: 1.0.0
  • OS: not relevant
  • JDK: not relevant

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions