[
https://issues.apache.org/jira/browse/HDFS-15783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Akira Ajisaka reassigned HDFS-15783:
------------------------------------
Assignee: Akira Ajisaka
> Speed up BlockPlacementPolicyRackFaultTolerant#verifyBlockPlacement
> -------------------------------------------------------------------
>
> Key: HDFS-15783
> URL: https://issues.apache.org/jira/browse/HDFS-15783
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: block placement
> Reporter: Akira Ajisaka
> Assignee: Akira Ajisaka
> Priority: Major
>
> {code:java}
> Set<String> racks = new TreeSet<>();
> for (DatanodeInfo dn : locs) {
> racks.add(dn.getNetworkLocation());
> }
> return new BlockPlacementStatusDefault(racks.size(), numberOfReplicas,
> clusterMap.getNumOfRacks());{code}
> Here, HashMap should be used instead of TreeSet.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]