[ 
https://issues.apache.org/jira/browse/FLINK-9675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16544617#comment-16544617
 ] 

ASF GitHub Bot commented on FLINK-9675:
---------------------------------------

Github user tedyu commented on the issue:

    https://github.com/apache/flink/pull/6335
  
    From https://travis-ci.org/apache/flink/jobs/404127448 :
    ```
    Failed tests: 
      BlobServerPutTest.testPutBufferFailsIncomingForJob 
    Expected: (an instance of java.io.IOException and exception with message a 
string containing " (Permission denied)")
         but: exception with message a string containing " (Permission denied)" 
message was 
"/tmp/junit4230160308108538699/junit7824839689112636430/blobStore-94b4189a-4e00-4bca-82c2-5ca72b1fb950/incoming/temp-00000001"
    Stacktrace was: java.nio.file.AccessDeniedException: 
/tmp/junit4230160308108538699/junit7824839689112636430/blobStore-94b4189a-4e00-4bca-82c2-5ca72b1fb950/incoming/temp-00000001
        at 
sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
        at 
sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
        at 
java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434)
        at java.nio.file.Files.newOutputStream(Files.java:216)
        at 
org.apache.flink.runtime.blob.BlobServer.putBuffer(BlobServer.java:594)
        at 
org.apache.flink.runtime.blob.BlobServer.putTransient(BlobServer.java:542)
        at 
org.apache.flink.runtime.blob.BlobServerPutTest.put(BlobServerPutTest.java:799)
        at 
org.apache.flink.runtime.blob.BlobServerPutTest.testPutBufferFailsIncoming(BlobServerPutTest.java:559)
        at 
org.apache.flink.runtime.blob.BlobServerPutTest.testPutBufferFailsIncomingForJob(BlobServerPutTest.java:516)
    ```
    Please check the test failure.
    
    Thanks


> Avoid FileInputStream/FileOutputStream
> --------------------------------------
>
>                 Key: FLINK-9675
>                 URL: https://issues.apache.org/jira/browse/FLINK-9675
>             Project: Flink
>          Issue Type: Improvement
>            Reporter: Ted Yu
>            Assignee: zhangminglei
>            Priority: Minor
>              Labels: filesystem, pull-request-available
>
> They rely on finalizers (before Java 11), which create unnecessary GC load.
> The alternatives, Files.newInputStream, are as easy to use and don't have 
> this issue.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to