hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HDFS-772) DFSClient.getFileChecksum(..) computes file md5 with extra padding
Date Fri, 13 Nov 2009 23:37:42 GMT

     [ https://issues.apache.org/jira/browse/HDFS-772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tsz Wo (Nicholas), SZE updated HDFS-772:
----------------------------------------

    Attachment: h772_20091113.patch

h772_20091113.patch: use md5out.getLength() to limit the data.

> 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
>    Affects Versions: 0.20.1
>            Reporter: Tsz Wo (Nicholas), SZE
>         Attachments: h772_20091113.patch
>
>
> {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().  Therefore, the currently implementation of
the algorithm compute fileMD5 with extra padding.

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


Mime
View raw message