You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2012/06/08 02:03:24 UTC
[jira] [Commented] (IO-269) Tailer locks file from deletion/rename
on Windows
[ https://issues.apache.org/jira/browse/IO-269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13291432#comment-13291432 ]
Sebb commented on IO-269:
-------------------------
File locking is only a problem on Windows, and could perhaps be addressed in a later release of the JVM.
Also, for some applications, it may not be necessary to allow concurrent rename/deletion.
So I think the re-open strategy should be an optional feature.
> Tailer locks file from deletion/rename on Windows
> -------------------------------------------------
>
> Key: IO-269
> URL: https://issues.apache.org/jira/browse/IO-269
> Project: Commons IO
> Issue Type: Bug
> Reporter: Sebb
> Attachments: IO-269-v2.patch, IO-269.patch
>
>
> The Tailer code works on Windows, except that it locks the file against deletion or rename.
> The test code fails to detect this, because it fails to check if the file deletion succeeds.
> This seems to be a Windows OS issue.
> A possible solution might be to keep closing and re-opening the file.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira