You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2022/03/08 16:12:19 UTC
[GitHub] [ozone] adoroszlai commented on a change in pull request #3171: HDDS-6415 - add Over-Utilized and Under-Utilized DN details in debug log
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: 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