Skip to content

IO-639: Fixed ReversedLinesFileReader does not read first line if its empty#829

Merged
garydgregory merged 1 commit intoapache:masterfrom
KishorMore-2005:branch
Feb 7, 2026
Merged

IO-639: Fixed ReversedLinesFileReader does not read first line if its empty#829
garydgregory merged 1 commit intoapache:masterfrom
KishorMore-2005:branch

Conversation

@KishorMore-2005
Copy link
Contributor

Early return: Handle leftOver immediately when chunk is exhausted
Mark empty line: Remember empty line exists before leading \n
Immediate return: Don't delay first line in last chunk
Check null: Don't overwrite existing line with leftOver

@garydgregory garydgregory merged commit 239d136 into apache:master Feb 7, 2026
21 checks passed
@KishorMore-2005 KishorMore-2005 deleted the branch branch February 8, 2026 06:32
@KishorMore-2005 KishorMore-2005 restored the branch branch February 8, 2026 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments