DFSClient.getFileChecksum(..) computes file md5 with extra padding
------------------------------------------------------------------

                 Key: HDFS-772
                 URL: https://issues.apache.org/jira/browse/HDFS-772
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: hdfs client
            Reporter: Tsz Wo (Nicholas), SZE


{code}
//DFSClient.getFileChecksum(..)
    final MD5Hash fileMD5 = MD5Hash.digest(md5out.getData()); 
{code}

The fileMD5 is computed with the entire byte array returning by 
md5out.getData().  However, data are valid only up to md5out.getLength().

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to