[
https://issues.apache.org/jira/browse/IO-269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13291632#comment-13291632
]
Sebb commented on IO-269:
-------------------------
bq. Marcos indicated that it was not the case in his benchmark.
The readLines() method won't return until it reaches EOF, so when run against a
pre-existing file there won't be any re-opens. It has to be run against a file
that is growing.
bq. Do you have any benchmark to back up the less efficient statement?
Yes, it can be up to about 45% slower.
I used the attached benchmark (to follow), which simulates EOF by reading lines
in chunks.
> Tailer locks file from deletion/rename on Windows
> -------------------------------------------------
>
> Key: IO-269
> URL: https://issues.apache.org/jira/browse/IO-269
> Project: Commons IO
> Issue Type: Bug
> Reporter: Sebb
> Attachments: IO-269-v2.patch, IO-269.patch
>
>
> The Tailer code works on Windows, except that it locks the file against
> deletion or rename.
> The test code fails to detect this, because it fails to check if the file
> deletion succeeds.
> This seems to be a Windows OS issue.
> A possible solution might be to keep closing and re-opening the file.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira