Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Complete
-
Affects Version/s: 4.1.5
-
Component/s: None
-
Labels:
-
Pull Request URL:
Description
The iterator within FileSplitter uses BufferedReader.ready() in hasNext().
This is incorrect because the file might have more data, but ready can return false if there is no data currently available to read.
While unlikely to happen with disk files, it could happen with a remote file.
Change hasNext() to read the line and return true until the line has been consumed by next().