Sathish Sreedharan created VFS-488:
--------------------------------------
Summary: 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
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