twitter/hadoop-lzo — pull request #79 by rangadi (2013-09-26 23:09:37+00:00)
Title: Improve handling of truncated files

LzopInputFormat always intended to terminate normally in case of truncated lzo files. But it does not always happen this way. calling read() after a read() returning -1 (as done in BufferedReader, e.g.) results in IOException.

The fix is to return -1 when eof is already set.

Added a unit test.