diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockPlacementPolicyDefault.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockPlacementPolicyDefault.java index 0390546ddc..cb65ba8e30 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockPlacementPolicyDefault.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockPlacementPolicyDefault.java @@ -1034,9 +1034,11 @@ public List chooseReplicasToDelete( } firstOne = false; if (cur == null) { - LOG.warn("No excess replica can be found. excessTypes: {}." + - " moreThanOne: {}. exactlyOne: {}.", excessTypes, moreThanOne, - exactlyOne); + if (LOG.isDebugEnabled()) { + LOG.debug("No excess replica can be found. excessTypes: {}." + + " moreThanOne: {}. exactlyOne: {}.", excessTypes, + moreThanOne, exactlyOne); + } break; }