commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IO-269) Tailer locks file from deletion/rename on Windows
Date Fri, 08 Jun 2012 00:31:23 GMT

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

Niall Pemberton commented on IO-269:
------------------------------------

With NIO2 in JDK 7 I wouldn't hold out much hope for future file improvements.

Also optional platform specific features really go against the ethos of Java's write once,
run anywhere.

Any reason why reopening is a bad idea on other non-Windoze platforms?
                
> 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

        

Mime
View raw message