adoroszlai commented on a change in pull request #3171:
URL: https://github.com/apache/ozone/pull/3171#discussion_r821825700
##########
File path:
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/balancer/ContainerBalancer.java
##########
@@ -374,6 +374,20 @@ private boolean initializeIteration() {
"Under-Utilized Datanodes that need to be balanced.",
overUtilizedNodes.size(), underUtilizedNodes.size());
+ if (LOG.isDebugEnabled()) {
+ overUtilizedNodes.forEach(entry -> {
+ LOG.debug("Datanode {} {} is Over-Utilized.",
+ entry.getDatanodeDetails().getHostName(),
+ entry.getDatanodeDetails().getUuid());
+ });
+
+ underUtilizedNodes.forEach(entry -> {
+ LOG.debug("Datanode {} {} is Under-Utilized.",
+ entry.getDatanodeDetails().getHostName(),
+ entry.getDatanodeDetails().getUuid());
+ });
+ }
Review comment:
Thanks @nilotpalnandi for the patch.
Minor suggestion for next time: over/under utilized status could be logged
at the end of this statement instead of separate log line.
https://github.com/apache/ozone/blob/1c58d79c11ff9133e52f7cf511fcbd202e8e8a41/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/balancer/ContainerBalancer.java#L323-L331
--
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]