[
https://issues.apache.org/jira/browse/IO-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17998273#comment-17998273
]
Gary D. Gregory commented on IO-460:
------------------------------------
[~zerkms]
That makes sense, still today ;)
> 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
>
> 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
(v8.20.10#820010)