hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eli Collins (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-7318) MD5Hash factory should reset the digester it returns
Date Sun, 22 May 2011 07:28:47 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-7318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13037523#comment-13037523

Eli Collins commented on HADOOP-7318:

+1   good catch

> MD5Hash factory should reset the digester it returns
> ----------------------------------------------------
>                 Key: HADOOP-7318
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7318
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: io
>    Affects Versions: 0.22.0
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>            Priority: Critical
>             Fix For: 0.22.0
>         Attachments: hadoop-7318.txt, hadoop-7318.txt
> Currently the getDigest() method in MD5Hash does not reset the digester it returns. Since
it's a thread-local, this means that a previous aborted usage of the same digester could leave
some state around. For example, if the secondary namenode receives an IOException while transfering
the image, and does another image transfer with the same thread, it will think it has received
an invalid digest.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message