[ 
https://issues.apache.org/jira/browse/IO-460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gary D. Gregory resolved IO-460.
--------------------------------
    Fix Version/s: 2.23.0
       Resolution: Fixed

[~zerkms] 

Fixed in git master and snapshot builds. Please verify and close.

> Tailer should not seek to the last line in case if file was just created
> ------------------------------------------------------------------------
>
>                 Key: IO-460
>                 URL: https://issues.apache.org/jira/browse/IO-460
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.4
>            Reporter: Ivan Kurnosov
>            Priority: Major
>             Fix For: 2.23.0
>
>
> If Tailer did could not open file on its first attempt - it means the file 
> did not exist yet hence when the file finally appears it must not be seeked 
> to the end even if the `end` argument is set.
> Otherwise the lines that are added withing waiting timeout are not captured 
> by Tailer.
> I find this behaviour wrong, since if a file did not exist on a moment of 
> running Tailer thread - then it must capture every line from the beginning.
> Thoughts?



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to