Wei-Chiu Chuang created HDDS-8175:
-------------------------------------

             Summary: getFileChecksum() throws exception in debug mode
                 Key: HDDS-8175
                 URL: https://issues.apache.org/jira/browse/HDDS-8175
             Project: Apache Ozone
          Issue Type: Sub-task
            Reporter: Wei-Chiu Chuang


[https://github.com/apache/ozone/blob/e3868fabdf560c7e15d385268424f34dadffde0b/hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/checksum/ReplicatedFileChecksumHelper.java#L215]

 

[https://github.com/apache/ozone/blob/e3868fabdf560c7e15d385268424f34dadffde0b/hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/checksum/ECFileChecksumHelper.java#L131]

 

Hadoop's CrcUtil.toSingleCrcString() expects 4 bytes of input, but Ozone's 
doesn't. So using this utility method will throw an exception "Unexpected 
byte[] length '%d' for single CRC. Contents: %s"

 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to