[
https://issues.apache.org/jira/browse/HDFS-4861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rushabh S Shah updated HDFS-4861:
---------------------------------
Status: Patch Available (was: Open)
Added a new member variable in NetworkTopology.java called as numOfLiveRacks
which will get the number of live Racks (i.e atleast 1 node in a rack will be
'In Service')
In BlockPlacementPolicyDefault.getMaxNodesPerRack() method, I am using
numOfLiveRacks to determine maxNodesPerRack instead of numOfRacks.
> BlockPlacementPolicyDefault does not consider decommissioning racks
> -------------------------------------------------------------------
>
> Key: HDFS-4861
> URL: https://issues.apache.org/jira/browse/HDFS-4861
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: namenode
> Affects Versions: 2.1.0-beta, 0.23.7
> Reporter: Kihwal Lee
> Assignee: Rushabh S Shah
> Attachments: HDFS-4861.patch
>
>
> getMaxNodesPerRack() calculates the max replicas/rack like this:
> {code}
> int maxNodesPerRack = (totalNumOfReplicas-1)/clusterMap.getNumOfRacks()+2;
> {code}
> Since this does not consider the racks that are being decommissioned and the
> decommissioning state is only checked later in isGoodTarget(), certain blocks
> are not replicated even when there are many racks and nodes.
--
This message was sent by Atlassian JIRA
(v6.2#6252)