[
https://issues.apache.org/jira/browse/HDFS-15783?focusedWorklogId=538789&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-538789
]
ASF GitHub Bot logged work on HDFS-15783:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 21/Jan/21 01:08
Start Date: 21/Jan/21 01:08
Worklog Time Spent: 10m
Work Description: aajisaka commented on pull request #2626:
URL: https://github.com/apache/hadoop/pull/2626#issuecomment-764142923
Merged. Thanks @goiri.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 538789)
Time Spent: 1h 10m (was: 1h)
> 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
> Labels: pull-request-available
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> {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]