From 9dce9011ad211bf35fe2538ded0f19d68f5c16d2 Mon Sep 17 00:00:00 2001 From: Arpit Agarwal Date: Tue, 25 Oct 2016 19:50:56 -0700 Subject: [PATCH] HDFS-11054. Suppress verbose log message in BlockPlacementPolicyDefault. Contributed by Chen Liang. --- .../blockmanagement/BlockPlacementPolicyDefault.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 0390546ddca..cb65ba8e308 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 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; }