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 ba45b0573da..ec2e4ba9271 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 @@ -1030,9 +1030,11 @@ public class BlockPlacementPolicyDefault extends BlockPlacementPolicy { } 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; }