hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiao Chen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-9314) Improve BlockPlacementPolicyDefault's picking of excess replicas
Date Thu, 03 Dec 2015 21:32:11 GMT

    [ https://issues.apache.org/jira/browse/HDFS-9314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15038629#comment-15038629
] 

Xiao Chen commented on HDFS-9314:
---------------------------------

As [discussed in HDFS-8647|https://issues.apache.org/jira/browse/HDFS-8647?focusedCommentId=15032747&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15032747],
I'm providing branch2.6/2.7 patch for this JIRA. [~zhz] please help review, thanks.
Backported from branch-2, and conflicts below:
- hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockPlacementPolicyDefault.java
HDFS-9007 which is in branch-2 but not 2.6/2.7. Mostly due to the extra parameter of chooseReplicaToDelete.
Resolved by directly copying HDFS-9414's branch-2 commit (which has 9007) to delete the extra
param - it’s not used anyways, and this makes backporting easier. See conflicts below.)
Also fixed branch2.6 for diamond operator, which is the only diff between 2.6 and 2.7 patches.
- hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockPlacementPolicyRackFaultTolerant.java
Not exist.
- hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockPlacementPolicyWithUpgradeDomain.java
Not exist.
- hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestReplicationPolicy.java
Due to {{BlockPlacementPolicyDefault#chooseReplicaToDelete}}. Applied HDFS-9414's branch-2
commit directly.
- hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestReplicationPolicyWithNodeGroup.java
Due to {{BlockPlacementPolicyDefault#chooseReplicaToDelete}}. Applied HDFS-9414's branch-2
commit directly.
- hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestReplicationPolicyWithUpgradeDomain.java
Not exist.
- hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestDNFencing.java
Due to {{BlockPlacementPolicyDefault#chooseReplicaToDelete}}. Applied HDFS-9414's branch-2
commit directly.

> Improve BlockPlacementPolicyDefault's picking of excess replicas
> ----------------------------------------------------------------
>
>                 Key: HDFS-9314
>                 URL: https://issues.apache.org/jira/browse/HDFS-9314
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Ming Ma
>            Assignee: Xiao Chen
>             Fix For: 2.8.0
>
>         Attachments: HDFS-9314.001.patch, HDFS-9314.002.patch, HDFS-9314.003.patch, HDFS-9314.004.patch,
HDFS-9314.005.patch, HDFS-9314.006.patch, HDFS-9314.branch26.patch, HDFS-9314.branch27.patch
>
>
> The test case used in HDFS-9313 identified NullPointerException as well as the limitation
of excess replica picking. If the current replicas are on {SSD(rack r1), DISK(rack 2), DISK(rack
3), DISK(rack 3)} and the storage policy changes to HOT_STORAGE_POLICY_ID, BlockPlacementPolicyDefault's
won't be able to delete SSD replica.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message