[ https://issues.apache.org/jira/browse/HDFS-2162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13188261#comment-13188261 ]
Tsz Wo (Nicholas), SZE commented on HDFS-2162: ---------------------------------------------- NodeType is used in Storage and Upgrade while NamenodeRole is used in BackupNode. It does not make sense to pass DATA_NODE to BackupNode and, similarly, it does not make sense to pass BACKUP/CHECKPOINT to Storage. Thus, it may be better to keep two enums. BTW, the enum names do sound confusing. How about renaming NodeType to StorageType. > Merge NameNode roles into NodeType. > ----------------------------------- > > Key: HDFS-2162 > URL: https://issues.apache.org/jira/browse/HDFS-2162 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: ha, name-node > Affects Versions: 0.23.0 > Reporter: Suresh Srinivas > Assignee: Suresh Srinivas > Priority: Minor > > Currently Namenode has {{NamenodeRole}} with roles NAMENODE, BACKUP and > CHECKPOINT. {{NodeType}} has node types NAME_NODE and DATA_NODE. Merge > NamenodeRole into NodeType. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira