[
https://issues.apache.org/jira/browse/IO-399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gary D. Gregory resolved IO-399.
--------------------------------
Fix Version/s: 2.23.0
Resolution: Fixed
Fixed in git master and snapshot builds in
[https://repository.apache.org/content/repositories/snapshots/commons-io/commons-io/2.23.0-SNAPSHOT/]
Please verify and close.
Thank you.
> 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
> Fix For: 2.23.0
>
>
> 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)