You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Arpit Agarwal (JIRA)" <ji...@apache.org> on 2014/09/04 02:13:52 UTC

[jira] [Commented] (HDFS-6848) Lack of synchronization on access to datanodeUuid in DataStorage#format()

    [ https://issues.apache.org/jira/browse/HDFS-6848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14120739#comment-14120739 ] 

Arpit Agarwal commented on HDFS-6848:
-------------------------------------

+1 for the patch. I'll commit it shortly.

> Lack of synchronization on access to datanodeUuid in DataStorage#format() 
> --------------------------------------------------------------------------
>
>                 Key: HDFS-6848
>                 URL: https://issues.apache.org/jira/browse/HDFS-6848
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Xiaoyu Yao
>            Priority: Minor
>         Attachments: HDFS-6848.0.patch
>
>
> {code}
>     this.datanodeUuid = datanodeUuid;
> {code}
> The above assignment should be done holding lock "DataStorage.this" - as is done in two other places.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)