Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SequenceFile reader fails when file ends with sync #10

Open
kmatzen opened this issue Dec 22, 2013 · 0 comments
Open

SequenceFile reader fails when file ends with sync #10

kmatzen opened this issue Dec 22, 2013 · 0 comments

Comments

@kmatzen
Copy link

kmatzen commented Dec 22, 2013

The check for EOF appears here.
https://github.com/matteobertozzi/Hadoop/blob/master/python-hadoop/hadoop/io/SequenceFile.py#L346

If that check reports that we are not at EOF, then it attempts to read any sync.

Then it proceeds to read records without checking whether or not reading that sync placed it at the EOF.
https://github.com/matteobertozzi/Hadoop/blob/master/python-hadoop/hadoop/io/SequenceFile.py#L361

Example of why you might have a sync right before EOF:
https://github.com/matteobertozzi/Hadoop/blob/master/python-hadoop/hadoop/io/SequenceFile.py#L154

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

No branches or pull requests

1 participant