sky76093016 commented on a change in pull request #2757:
URL: https://github.com/apache/ozone/pull/2757#discussion_r746220837
##########
File path:
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/SCMCommonPlacementPolicy.java
##########
@@ -264,6 +264,16 @@ public static boolean hasEnoughSpace(DatanodeDetails
datanodeDetails,
public abstract DatanodeDetails chooseNode(
List<DatanodeDetails> healthyNodes);
+ /**
+ * Choose a datanode according to the policy, this function is implemented
+ * by the actual policy class.
+ *
+ * @param healthyNodes - Set of healthy nodes we can choose from.
+ * @return DatanodeDetails
+ */
+ public abstract DatanodeDetails chooseFirstNode(
Review comment:
Oh right. I was hesitating between these two when I made changes before.
--
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]