[
https://issues.apache.org/jira/browse/IO-399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gary D. Gregory updated IO-399:
-------------------------------
Assignee: Gary D. Gregory
> 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
> Assignee: Gary D. Gregory
> Priority: Major
>
> 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
(v10.3.26#10030026)