commons-issues mailing list archives

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


Sebb commented on IO-269:

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

I was not proposing making the code OS-specific.

bq. Any reason why reopening is a bad idea on other non-Windoze platforms?

It would be somewhat less efficient.
Also, AFAIK the Tailer can continue following a renamed file.

If there do turn out to be issues with the new strategy - could it cause file rotations to
be missed? - making it optional is safer.
> Tailer locks file from deletion/rename on Windows
> -------------------------------------------------
>                 Key: IO-269
>                 URL:
>             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:!default.jspa
For more information on JIRA, see:


View raw message