chihsuan commented on code in PR #11235:
URL: https://github.com/apache/ozone/pull/11235#discussion_r4052754712


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/KeyManagerImpl.java:
##########
@@ -2312,21 +2307,26 @@ public List<? extends DatanodeDetails> 
sortDatanodes(List<? extends DatanodeDeta
     return clusterMap.sortByDistanceCost(client, nodes, nodes.size());
   }
 
+  @Override
+  public Node resolveClientForWrite(String clientMachine, NetworkTopology 
clusterMap) {
+    Preconditions.checkArgument(!StringUtils.isEmpty(clientMachine), 
"clientMachine is empty");
+    Objects.requireNonNull(clusterMap, "clusterMap is null");
+    return captureLatencyNs(metrics.getAllocateBlockSortDatanodesLatencyNs(),

Review Comment:
   Thanks! Added AllocateBlockResolveClientLatencyNs for the client lookup and 
restored the sort metric description.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to