[jira] [Commented] (HDFS-13982) convertStorageType() in PBHelperClient is not easy to extend when adding new storage types

2018-10-10 Thread Yiqun Lin (JIRA)
[ https://issues.apache.org/jira/browse/HDFS-13982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16644642#comment-16644642 ] Yiqun Lin commented on HDFS-13982: -- [~water], just take a quick glance in class PBHelperClient, there

[jira] [Commented] (HDFS-13982) convertStorageType() in PBHelperClient is not easy to extend when adding new storage types

2018-10-10 Thread Xiang Li (JIRA)
[ https://issues.apache.org/jira/browse/HDFS-13982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16644506#comment-16644506 ] Xiang Li commented on HDFS-13982: - Trying to use some functions of enum to rewrite the switch/case logic.