[
https://issues.apache.org/jira/browse/IO-399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14204674#comment-14204674
]
Ivan Kurnosov commented on IO-399:
----------------------------------
Btw, created a quick fix for this issue:
https://github.com/zerkms/commons-io/compare/IO399-handling-reopen
What do you think of it?
> Tailer does not handle log file rotation properly if reOpen is true
> -------------------------------------------------------------------
>
> Key: IO-399
> URL: https://issues.apache.org/jira/browse/IO-399
> Project: Commons IO
> Issue Type: Bug
> Reporter: Sebb
>
> If the reOpen option is true, the Tailer can currently fail with
> FileNotFoundException if a logger renames or deletes an existing file and
> does not replace it before the Tailer tries to reopen it following the wait
> period.
> In the case of Windows, the delete/rename can only occur during the wait
> period as the file is locked otherwise, but for other OSes the delete/rename
> may occur whilst the tailer still has the file open; as far as I can tell,
> that case is catered for.
> The Tailer should report FileNotFound and wait for the file to reappear.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)