ozone
ozone copied to clipboard
HDDS-6971. EC: Add EC block checksum computer.
What changes were proposed in this pull request?
EC keys do not have a way to provide checksum for getFileChecksum
API. This JIRA provides an implementation for EC Checksum which can also be used for Data Integrity check later.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-6971
TODO
- [x] Add MD5 Checksum
- [x] EC Coordinator fixes for generating checksum
- [ ] Additional Unit and Integration Test
How was this patch tested?
This patch was tested manually and using integration tests.
@duongkame
Mostly changes looks ok to me. @jojochuang could you please take a final look? Thanks
Thanks @aswinshakil for working on this. LGTM. Pending CI and pending @jojochuang final confirmation on his comments.
Could you also file doc JIRA for updating the docs with EC constraints? Ex: what is comparable between EC and Ratis and HDFS etc.
Created DOC JIRA HDDS-7491 for EC FileChecksum