boris-petrov commented on pull request #166:
URL: https://github.com/apache/commons-vfs/pull/166#issuecomment-797344470


   I pushed a few times, 2 of those all tests passed, the last one blew up 
again on the same test. I added some logging, this is the result:
   
   ```
   Copying threw an exception:
   org.apache.commons.vfs2.FileSystemException: Could not copy 
"file:///home/runner/work/commons-vfs/commons-vfs/commons-vfs2/src/test/resources/test-data/test.zip"
 to "sftp://testtest@localhost:38865/write-tests/file44copy.txt";.
        at 
org.apache.commons.vfs2.provider.AbstractFileObject.copyFrom(AbstractFileObject.java:300)
        at 
org.apache.commons.vfs2.provider.sftp.SftpMultiThreadWriteTests.lambda$testParallelCopyFromLocalFileSystem$0(SftpMultiThreadWriteTests.java:81)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
        at java.base/java.lang.Thread.run(Thread.java:832)
   Caused by: java.io.IOException: Stream closed
        at 
java.base/java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:168)
        at 
java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:289)
        at 
java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:343)
        at 
org.apache.commons.vfs2.util.MonitorInputStream.read(MonitorInputStream.java:155)
        at java.base/java.io.FilterInputStream.read(FilterInputStream.java:106)
        at 
org.apache.commons.vfs2.provider.DefaultFileContent.write(DefaultFileContent.java:874)
        at 
org.apache.commons.vfs2.provider.DefaultFileContent.write(DefaultFileContent.java:854)
        at 
org.apache.commons.vfs2.provider.DefaultFileContent.write(DefaultFileContent.java:827)
        at 
org.apache.commons.vfs2.provider.DefaultFileContent.write(DefaultFileContent.java:841)
        at 
org.apache.commons.vfs2.util.FileObjectUtils.writeContent(FileObjectUtils.java:184)
        at 
org.apache.commons.vfs2.provider.AbstractFileObject.copyFrom(AbstractFileObject.java:295)
        ... 5 more
   ```
   
   It doesn't seem related to the changes in this PR... you haven't seen this 
test fail randomly until now?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to