- 
                Notifications
    You must be signed in to change notification settings 
- Fork 9.1k
HDFS-17803 : Compute correct checksum type when file is empty #7764
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
HDFS-17803 : Compute correct checksum type when file is empty #7764
Conversation
| 💔 -1 overall 
 
 This message was automatically generated. | 
| 🎊 +1 overall 
 
 This message was automatically generated. | 
| Hey, can I please get a review on this one? | 
| We're closing this stale PR because it has been open for 100 days with no activity. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable. | 
Description of PR
When the file is empty or the file size is 0, the checksum returned is always MD5MD5CRC type even when the selected checksum type is COMPOSITE_CRC.
This is misleading and can create confusion while debugging.
How was this patch tested?
Unit tests added
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?