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

Sathish Sreedharan commented on VFS-488:
----------------------------------------

Hi guys, Is there a chance this can be looked at? Any feedback on if it is a 
bug on the product or on the way I'm using it will help
                
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to