commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niall Pemberton <niall.pember...@gmail.com>
Subject Re: [io] Tailer returning partial lines returned when EOF before newline
Date Tue, 24 May 2011 18:48:42 GMT
On Tue, May 24, 2011 at 6:32 PM, frankgrimes97 <frankgrimes97@gmail.com> wrote:
> Hi All,
>
> We are using org.apache.commons.io.input.Tailer to process log files for
> insertion into a database.
>
> What we are seeing is that occasionally a line fails to process because it
> is incomplete.
> In reviewing the code, it appears that Tailer.readLines delegates to
> java.io.RandomAccessFile.readLine which returns a partial line if EOF is
> reached.
>
> Shouldn't Tailer be providing a guarantee of complete lines?
> Should we create a bug report for this?
>
> FYI, we are using 1.6.0_15 on Linux.

Sure

https://issues.apache.org/jira/browse/IO

Niall

> Thanks,
>
> Frank Grimes
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message