symious commented on pull request #3190:
URL: https://github.com/apache/ozone/pull/3190#issuecomment-1067564703


   How about getting all the nodes from networkTopology and then exclude the 
nodes from excludedNodes, then get the correct available nodes counts. Might be 
like the following implementation.
   
   ```
   List<Nodes> nodes = topology.getNodes(ROOT);
   totalNodes = nodes.removeAll(excludedNodes);
   if (totalNodes < requiredNodes) {
   ...
   }
   ```
   


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