Open
Description
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