Ivan Kurnosov created IO-460:
--------------------------------

             Summary: 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


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
(v6.3.4#6332)

Reply via email to