commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IO-399) Tailer does not handle log file rotation properly if reOpen is true
Date Thu, 12 Sep 2013 15:50:52 GMT
Sebb created IO-399:
-----------------------

             Summary: 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message