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 "Brandon Li (JIRA)" <ji...@apache.org> on 2014/02/07 19:28:23 UTC
[jira] [Resolved] (HDFS-5874) Should not compare DataNode current
layout version with that of NameNode in DataStrorage
[ https://issues.apache.org/jira/browse/HDFS-5874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brandon Li resolved HDFS-5874.
------------------------------
Resolution: Fixed
> 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: datanode
> Reporter: Brandon Li
> Assignee: Brandon Li
> Fix For: HDFS-5535 (Rolling upgrades)
>
> Attachments: HDFS-5874.001.patch
>
>
> 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)