Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
Set<String> racks = new TreeSet<>(); for (DatanodeInfo dn : locs) { racks.add(dn.getNetworkLocation()); } return new BlockPlacementStatusDefault(racks.size(), numberOfReplicas, clusterMap.getNumOfRacks());
Here, HashMap should be used instead of TreeSet.
Attachments
Issue Links
- relates to
-
HDFS-14102 Performance improvement in BlockPlacementPolicyDefault
- Resolved
- links to