shuan1026 opened a new pull request, #11125: URL: https://github.com/apache/ozone/pull/11125
## What changes were proposed in this pull request? `computeMd5Crc` called `MessageDigest.digest()` twice. The second call hashes empty input after reset, so EC `MD5MD5CRC` file checksums were content-independent. Use the first digest for `setOutBytes`. This was introduced in [HDDS-10480](https://issues.apache.org/jira/browse/HDDS-10480) when computeMd5Crc was rewritten to use MessageDigest.update(). The new code calls digester.digest() twice; the second call (after reset) is passed to setOutBytes. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-16298 ## How was this patch tested? - `mvn -pl :ozone-client test -Dtest=TestECBlockChecksumComputer` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
