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

Bernd Eckenfels commented on VFS-488:
-------------------------------------

I think thats a problem related to OS, sftp server and a comination thereof. 
What SFTP serers you are using on which OS. Is Program B accessing source or 
target server, locally or via the server? Can you provide a thread dump of 
program A while it hangs? (but generally speaking changes are low this can be 
fixed)

> Java Program does not exit or throw an exception when a FileObject being read 
> from is accessed by another process
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: VFS-488
>                 URL: https://issues.apache.org/jira/browse/VFS-488
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: Development
>            Reporter: Sathish Sreedharan
>              Labels: Hanging
>
> Scenario:
> 1. Program A moves a large file "abc.txt" from source SFTP server to a target 
> SFTP server.
> 2. While the file is being moved by Program A, Program B  resolves the same 
> file "abc.txt" and starts writing to it OR renames the file "abc.txt"
> Issue:
> 1. Program A that has an open input stream to abc.txt does not exit or throw 
> an exception
> 2. I'm thinking Program A keeps waiting on inputstream.read() as it is a 
> blocking operation
> Is this a known issue, and if it is, any work around? Or in other words, can 
> Program B somehow determine that "abc.txt" is being written to by an external 
> process?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to