[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    [jira] [Comment Edited] (VFS-627) SFTP randomly hangs when copying a file on remote server
From:       "Bernd Eckenfels (Jira)" <jira () apache ! org>
Date:       2020-02-27 18:36:00
Message-ID: JIRA.13031927.1483528659000.23454.1582828560317 () Atlassian ! JIRA
[Download RAW message or body]


    [ https://issues.apache.org/jira/browse/VFS-627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId046874#comment-17046874 \
]

Bernd Eckenfels edited comment on VFS-627 at 2/27/20 6:35 PM:
--------------------------------------------------------------

Haven't seen another provider for VFS which does SFTP, sorry.

I am not sure if we can actually for the provider and apply your patch if the jsch \
project is dormant. I think might not be possible for license reasons, but you could \
fork it (or find someone who can do that, they need maven central upload \
capabilities).

Do you see that with a specific kind of server software or multiple?


was (Author: b.eckenfels):
Haven't seen another provider for VFS which does SFTP, sorry. I am afraid this \
requires and inspecting the protocol messages by somebody who knows the protocol \
well. Do you see that with a specific kind of server software or multiple?

> SFTP randomly hangs when copying a file on remote server
> --------------------------------------------------------
> 
> Key: VFS-627
> URL: https://issues.apache.org/jira/browse/VFS-627
> Project: Commons VFS
> Issue Type: Bug
> Affects Versions: 2.1
> Environment: Java 1.8.0_92
> VFS 2.1
> JSch 0.1.53
> Reporter: Henri Hagberg
> Priority: Major
> 
> I have a process where a file is first copied over SFTP to local server and then on \
> the remote server the file is copied to another location on that server for \
> archiving. Both are done using {{FileObject#copyFrom}}. Now I've encountered twice \
> the situation where during archiving (on remote server) the copy action hangs \
> indefinitely (the process was left running for over 24 hours). In both cases the \
> issue happened when around 2000 files had been transferred (typical amount is under \
> 100). The problem is difficult to reproduce since it doesn't always happen even \
> with large number of files. Based on the stacktrace and random occurrences it might \
> be a concurrency issue. The code using VFS however is single threaded. {code}
> Attaching to process ID 128021, please wait...
> Debugger attached successfully.
> Server compiler detected.
> JVM version is 25.92-b14
> Deadlock Detection:
> No deadlocks found.
> Thread 19073: (state = BLOCKED)
> Thread 128165: (state = BLOCKED)
> - java.lang.Object.wait(long) @bci=0 (Compiled frame; information may be imprecise)
> - java.lang.ref.ReferenceQueue.remove(long) @bciY, line3 (Compiled frame)
> - org.apache.commons.vfs2.cache.SoftRefFilesCache$SoftRefReleaseThread.run() @bci&, \
> line„ (Compiled frame) Thread 128164: (state = BLOCKED)
> - java.lang.Object.wait(long) @bci=0 (Compiled frame; information may be imprecise)
> - java.io.PipedInputStream.awaitSpace() @bci#, line'3 (Compiled frame)
> - java.io.PipedInputStream.receive(byte[], int, int) @bci1, line#1 (Compiled frame)
> - java.io.PipedOutputStream.write(byte[], int, int) @bciw, line9 (Compiled frame)
> - com.jcraft.jsch.IO.put(byte[], int, int) @bci=7, lined (Compiled frame)
> - com.jcraft.jsch.Channel.write(byte[], int, int) @bci=7, lineC8 (Compiled frame)
> - com.jcraft.jsch.Session.run() @bci60, line24 (Compiled frame)
> - java.lang.Thread.run() @bci, linet5 (Interpreted frame)
> Thread 128139: (state = BLOCKED)
> Thread 128138: (state = BLOCKED)
> - java.lang.Object.wait(long) @bci=0 (Compiled frame; information may be imprecise)
> - java.lang.ref.ReferenceQueue.remove(long) @bciY, line3 (Compiled frame)
> - java.lang.ref.ReferenceQueue.remove() @bci=2, line4 (Compiled frame)
> - java.lang.ref.Finalizer$FinalizerThread.run() @bci6, line 9 (Interpreted frame)
> Thread 128137: (state = BLOCKED)
> - java.lang.Object.wait(long) @bci=0 (Compiled frame; information may be imprecise)
> - java.lang.Object.wait() @bci=2, lineP2 (Compiled frame)
> - java.lang.ref.Reference.tryHandlePending(boolean) @bciT, line1 (Compiled frame)
> - java.lang.ref.Reference$ReferenceHandler.run() @bci=1, line3 (Interpreted frame)
> Thread 128022: (state = BLOCKED)
> - java.lang.Object.wait(long) @bci=0 (Compiled frame; information may be imprecise)
> - com.jcraft.jsch.Session.write(com.jcraft.jsch.Packet, com.jcraft.jsch.Channel, \
>                 int) @bci‰, line61 (Compiled frame)
> - com.jcraft.jsch.ChannelSftp.sendWRITE(byte[], long, byte[], int, int) @bci1, \
>                 line&19 (Compiled frame)
> - com.jcraft.jsch.ChannelSftp.access$100(com.jcraft.jsch.ChannelSftp, byte[], long, \
>                 byte[], int, int) @bci=9, line6 (Compiled frame)
> - com.jcraft.jsch.ChannelSftp$1.write(byte[], int, int) @bciw, liney1 (Compiled \
>                 frame)
> - java.io.BufferedOutputStream.write(byte[], int, int) @bci , line2 (Compiled \
>                 frame)
> - org.apache.commons.vfs2.util.MonitorOutputStream.write(byte[], int, int) @bci=8, \
>                 line3 (Compiled frame)
> - java.io.BufferedOutputStream.flushBuffer() @bci , line‚ (Compiled frame)
> - java.io.BufferedOutputStream.write(byte[], int, int) @bci9, line6 (Compiled \
>                 frame)
> - org.apache.commons.vfs2.util.MonitorOutputStream.write(byte[], int, int) @bci=8, \
>                 line3 (Compiled frame)
> - org.apache.commons.vfs2.provider.DefaultFileContent.write(java.io.OutputStream, \
>                 int) @bci5, line‰2 (Compiled frame)
> - org.apache.commons.vfs2.provider.DefaultFileContent.write(java.io.OutputStream) \
>                 @bci=5, line†5 (Compiled frame)
> - org.apache.commons.vfs2.provider.DefaultFileContent.write(org.apache.commons.vfs2.FileContent) \
>                 @bci=9, line‚8 (Compiled frame)
> - org.apache.commons.vfs2.provider.DefaultFileContent.write(org.apache.commons.vfs2.FileObject) \
>                 @bci=7, line„9 (Compiled frame)
> - org.apache.commons.vfs2.FileUtil.copyContent(org.apache.commons.vfs2.FileObject, \
>                 org.apache.commons.vfs2.FileObject) @bci=7, line (Compiled frame)
> - org.apache.commons.vfs2.provider.AbstractFileObject.copyFrom(org.apache.commons.vfs2.FileObject, \
>                 org.apache.commons.vfs2.FileSelector) @bci8, line38 (Compiled \
>                 frame)
> ...
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic