Tsz Wo Nicholas Sze created HDFS-6076:
-----------------------------------------
Summary: 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
Reporter: Tsz Wo Nicholas Sze
Assignee: Tsz Wo Nicholas Sze
Priority: Minor
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)