guihecheng commented on pull request #3190:
URL: https://github.com/apache/ozone/pull/3190#issuecomment-1067596325
> 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) {
> ...
> }
> ```
Hmmm, I think this way is workable, and then we could keep the early check
and throw here,
I'll update, thanks~
--
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]