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 "Tsz Wo Nicholas Sze (JIRA)" <ji...@apache.org> on 2014/03/07 21:24:47 UTC
[jira] [Updated] (HDFS-6076) SimulatedDataSet should not create
DatanodeRegistration with namenode layout version and type
[ https://issues.apache.org/jira/browse/HDFS-6076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tsz Wo Nicholas Sze updated HDFS-6076:
--------------------------------------
Attachment: h6076_20140307.patch
h6076_20140307.patch: 1st patch.
> SimulatedDataSet should not create DatanodeRegistration with namenode layout version and type
> ---------------------------------------------------------------------------------------------
>
> Key: HDFS-6076
> URL: https://issues.apache.org/jira/browse/HDFS-6076
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: datanode, test
> Reporter: Tsz Wo Nicholas Sze
> Assignee: Tsz Wo Nicholas Sze
> Priority: Minor
> Attachments: h6076_20140307.patch
>
>
> In DataNode.createBPRegistration(..), it creates storageInfo with nsInfo for the case of SimulatedDataSet. Then, the layout version and the node type will be respectively set to namenode's layout version and NodeType.NAME_NODE.
> {code}
> //DataNode.createBPRegistration(..)
> if (storageInfo == null) {
> // it's null in the case of SimulatedDataSet
> storageInfo = new StorageInfo(nsInfo);
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)