swamirishi commented on code in PR #3606:
URL: https://github.com/apache/ozone/pull/3606#discussion_r924994691
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/SCMCommonPlacementPolicy.java:
##########
@@ -127,6 +126,28 @@ public ConfigurationSource getConf() {
*/
@Override
public List<DatanodeDetails> chooseDatanodes(
+ List<DatanodeDetails> excludedNodes, List<DatanodeDetails>
favoredNodes,
+ int nodesRequired, long metadataSizeRequired, long dataSizeRequired)
+ throws SCMException {
+ return chooseDatanodesInternal(
+ excludedNodes.stream()
+ .map(node->nodeManager.getNodeByUuid(node.getUuidString()))
+ .collect(Collectors.toList()),
+ favoredNodes, nodesRequired, metadataSizeRequired,
dataSizeRequired);
Review Comment:
Exclude List comes as part of the ExcludeList Protobuf. Favoured nodes are
passed nowhere & is passed as an empty list
--
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]