diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java index 0b0021e49f3..954b29728a6 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java @@ -2986,24 +2986,26 @@ public class BlockManager implements BlockStatsMXBean { while (processed < numBlocksPerIteration && blocksItr.hasNext()) { BlockInfo block = blocksItr.next(); MisReplicationResult res = processMisReplicatedBlock(block); - if (LOG.isTraceEnabled()) { - LOG.trace("block " + block + ": " + res); - } switch (res) { case UNDER_REPLICATED: + LOG.trace("under replicated block {}: {}", block, res); nrUnderReplicated++; break; case OVER_REPLICATED: + LOG.trace("over replicated block {}: {}", block, res); nrOverReplicated++; break; case INVALID: + LOG.trace("invalid block {}: {}", block, res); nrInvalid++; break; case POSTPONE: + LOG.trace("postpone block {}: {}", block, res); nrPostponed++; postponeBlock(block); break; case UNDER_CONSTRUCTION: + LOG.trace("under construction block {}: {}", block, res); nrUnderConstruction++; break; case OK: