[ https://issues.apache.org/jira/browse/HDFS-8390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Walter Su updated HDFS-8390: ---------------------------- Resolution: Invalid Status: Resolved (was: Patch Available) Not everyone uses NodeGroup. It's not worth complicating default policy. Close it as Invalid. > merge BlockPlacementPolicyWithNodeGroup with default policy > ----------------------------------------------------------- > > Key: HDFS-8390 > URL: https://issues.apache.org/jira/browse/HDFS-8390 > Project: Hadoop HDFS > Issue Type: Improvement > Reporter: Walter Su > Assignee: Walter Su > Labels: BlockPlacementPolicy > Attachments: HDFS-8390.001.patch, HDFS-8390.002.patch, > HDFS-8390.003.patch, HDFS-8390.004.patch > > > We saw requirements for adding new policies.( HDFS-7613, HDFS-7892, > HDFS-8131, maybe HDFS-4894, HDFS-7068 in the future). Every policy need to > support NodeGroup. > Assume we have N policies: > {noformat} > BlockPlacementPolicyDefault > BlockPlacementPolicyCustomized1 extends BlockPlacementPolicyDefault > BlockPlacementPolicyCustomized2 extends BlockPlacementPolicyDefault > BlockPlacementPolicyCustomized3 extends BlockPlacementPolicyDefault > {noformat} > We need to implements another N policies: > {noformat} > BlockPlacementPolicyyWithNodeGroup > BlockPlacementPolicyCustomized1WithNodeGroup extends > BlockPlacementPolicyWithNodeGroup > BlockPlacementPolicyCustomized2WithNodeGroup extends > BlockPlacementPolicyWithNodeGroup > BlockPlacementPolicyCustomized3WithNodeGroup extends > BlockPlacementPolicyWithNodeGroup > {noformat} > We had better merge nodeGroup awareness into default policy. So every new > policy only need to extends BlockPlacementPolicyDefault. -- This message was sent by Atlassian JIRA (v6.3.4#6332)