[
https://issues.apache.org/jira/browse/HDDS-12954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsz-wo Sze resolved HDDS-12954.
-------------------------------
Fix Version/s: 2.1.0
Resolution: Fixed
The pull request is merged.
> Do not throw IOException for checksum
> -------------------------------------
>
> Key: HDDS-12954
> URL: https://issues.apache.org/jira/browse/HDDS-12954
> Project: Apache Ozone
> Issue Type: Sub-task
> Components: common
> Reporter: Tsz-wo Sze
> Assignee: Tsz-wo Sze
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.1.0
>
>
> - For checksum mismatched, throw OzoneChecksumException.
> - For unexpected checksum type or inconsistent proto, throw
> IllegalArgumentException.
> - For unexpected state, throw IllegalStateException.
> Also the verifyChecksum methods in Checksum/ChecksumData always return true
> (in case of failure, it throws an exception). We will change them to return
> void.
> When working on this issue, found a bug that the md5 checksum was stored in a
> ByteString with length 20 while the md5 only has 16 bytes. The last 4 bytes
> are always zeros. Will fix it in this JIRA.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]