You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "symious (via GitHub)" <gi...@apache.org> on 2024/05/02 09:34:57 UTC

Re: [PR] HDDS-10715. Remove Decommision nodes on replication [ozone]

symious commented on code in PR #6558:
URL: https://github.com/apache/ozone/pull/6558#discussion_r1587342928


##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/node/NodeManager.java:
##########
@@ -119,6 +122,24 @@ default void registerSendCommandNotify(SCMCommandProto.Type type,
   List<DatanodeDetails> getNodes(
       NodeOperationalState opState, NodeState health);
 
+  /**
+   * Gets all Live Datanodes that is currently communicating with SCM.
+   * The result is always not null.
+   * @param opStates - The operational states of the node
+   * @param health - The health of the node
+   * @return List of Datanodes that are Heartbeating SCM.
+   */
+  default List<DatanodeDetails> getNodes(

Review Comment:
   @sodonnel IMHO, the current changes should be a long-term solution, the change of maxRetries is currently being used in our cluster, but not a good way when the cluster is getting bigger.
   
   For the `getNodes` part, we should improve the performance for the general usages.



-- 
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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org