This is an automated email from the ASF dual-hosted git repository.
nanda pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 371792f46b HDDS-12231. Logging in Container Balancer is too verbose.
(#7826)
371792f46b is described below
commit 371792f46b527985e09fae14231f85f7c348947f
Author: Siddhant Sangwan <[email protected]>
AuthorDate: Thu Feb 6 20:29:15 2025 +0530
HDDS-12231. Logging in Container Balancer is too verbose. (#7826)
---
.../hdds/scm/container/balancer/AbstractFindTargetGreedy.java | 2 +-
.../hadoop/hdds/scm/container/balancer/ContainerBalancerTask.java | 6 ++----
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git
a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/balancer/AbstractFindTargetGreedy.java
b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/balancer/AbstractFindTargetGreedy.java
index df45ffd9b6..7da1b76444 100644
---
a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/balancer/AbstractFindTargetGreedy.java
+++
b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/balancer/AbstractFindTargetGreedy.java
@@ -128,7 +128,7 @@ public ContainerMoveSelection findTargetForContainerMove(
return new ContainerMoveSelection(target, container);
}
}
- logger.info("Container Balancer could not find a target for " +
+ logger.debug("Container Balancer could not find a target for " +
"source datanode {}", source.getUuidString());
return null;
}
diff --git
a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/balancer/ContainerBalancerTask.java
b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/balancer/ContainerBalancerTask.java
index 54c0f4d81e..0f2cc378cc 100644
---
a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/balancer/ContainerBalancerTask.java
+++
b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/balancer/ContainerBalancerTask.java
@@ -894,10 +894,8 @@ private ContainerMoveSelection
matchSourceWithTarget(DatanodeDetails source) {
sourceContainerIDSet.removeAll(toRemoveContainerIds);
if (moveSelection == null) {
- if (LOG.isDebugEnabled()) {
- LOG.debug("ContainerBalancer could not find a suitable target for " +
- "source node {}.", source.getUuidString());
- }
+ LOG.info("ContainerBalancer could not find a suitable target for " +
+ "source node {}.", source.getUuidString());
return null;
}
LOG.info("ContainerBalancer matched source datanode {} with target " +
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]