[
https://issues.apache.org/jira/browse/HDFS-5874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13890137#comment-13890137
]
Brandon Li commented on HDFS-5874:
----------------------------------
Noticed the following check should also be removed from
DataStorage#recoverTransitionRead():
{noformat}assert this.getLayoutVersion() == nsInfo.getLayoutVersion() :
"Data-node and name-node layout versions must be the same.";{noformat}
> Should not compare DataNode current layout version with that of NameNode in
> DataStrorage
> ----------------------------------------------------------------------------------------
>
> Key: HDFS-5874
> URL: https://issues.apache.org/jira/browse/HDFS-5874
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: namenode
> Reporter: Brandon Li
>
> As [~vinayrpet] pointed out in HDFS-5754: in DataStorage
> DATANODE_LAYOUT_VERSION should not compare with NameNode layout version
> anymore.
> {noformat}
> if (DataNodeLayoutVersion.supports(
> LayoutVersion.Feature.FEDERATION,
> HdfsConstants.DATANODE_LAYOUT_VERSION) &&
> HdfsConstants.DATANODE_LAYOUT_VERSION == nsInfo.getLayoutVersion())
> {
> readProperties(sd, nsInfo.getLayoutVersion());
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)