You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ay...@apache.org on 2021/05/10 11:48:09 UTC
[hadoop] branch trunk updated: HDFS-16003. ProcessReport print
invalidatedBlocks should judge debug level at first. Contributed by lei w.
This is an automated email from the ASF dual-hosted git repository.
ayushsaxena pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new 359c0c1 HDFS-16003. ProcessReport print invalidatedBlocks should judge debug level at first. Contributed by lei w.
359c0c1 is described below
commit 359c0c1d1edb5ef3901e95f09364be6bd742866e
Author: Ayush Saxena <ay...@apache.org>
AuthorDate: Mon May 10 17:09:51 2021 +0530
HDFS-16003. ProcessReport print invalidatedBlocks should judge debug level at first. Contributed by lei w.
---
.../apache/hadoop/hdfs/server/blockmanagement/BlockManager.java | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
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 fdf300f..247de6b 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
@@ -2831,9 +2831,12 @@ public class BlockManager implements BlockStatsMXBean {
namesystem.writeUnlock();
}
- for (Block b : invalidatedBlocks) {
- blockLog.debug("BLOCK* processReport 0x{}: {} on node {} size {} does not"
- + " belong to any file", strBlockReportId, b, node, b.getNumBytes());
+ if(blockLog.isDebugEnabled()) {
+ for (Block b : invalidatedBlocks) {
+ blockLog.debug("BLOCK* processReport 0x{}: {} on node {} size {} " +
+ "does not belong to any file.", strBlockReportId, b,
+ node, b.getNumBytes());
+ }
}
// Log the block report processing stats from Namenode perspective
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org