-
Notifications
You must be signed in to change notification settings - Fork 295
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
check for errors while writing to disk #856
Conversation
|
014021c
to
817192b
Compare
This PR lowers coverage due to extra IO error checking code and how hard it is to test that. |
Jenkins, please retest this |
3c0062d
to
4124cfc
Compare
@luizirber @camillescott @ctb ready for review and merge |
4124cfc
to
fd93397
Compare
ksize, = unpack('I', countinghash.read(uint_size)) | ||
n_tables, = unpack('B', countinghash.read(1)) | ||
table_size, = unpack('Q', countinghash.read(ulonglong_size)) | ||
except: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this check be used on extract_hashbits_info too?
(at first I thought this could be more strict and catch only struct.error, but there might be IOError too and in the end they are all a kind of corrupted input, so I think that's fine)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, thanks for the suggestion.
It would be good to open an issue to add tests for these extra IO error checking code (per #856 (comment) ) |
fd93397
to
3881bad
Compare
Jenkins, retest this please |
3881bad
to
1c7b728
Compare
check for errors while writing to disk
Will fix #443