From e226b5b40d716b6d363c43a8783766b72734e347 Mon Sep 17 00:00:00 2001 From: Kihwal Lee Date: Tue, 28 Oct 2014 14:54:05 -0500 Subject: [PATCH] HDFS-7213. processIncrementalBlockReport performance degradation. Contributed by Eric Payne. --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../hadoop/hdfs/server/blockmanagement/BlockManager.java | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index f704efcdbc..88dddc13c8 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -315,6 +315,9 @@ Release 2.7.0 - UNRELEASED HDFS-5928. Show namespace and namenode ID on NN dfshealth page. (Siqi Li via wheat9) + HDFS-7213. processIncrementalBlockReport performance degradation. + (Eric Payne via kihwal) + OPTIMIZATIONS BUG FIXES 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 9b2ce90f63..ecc0a4a1e3 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 @@ -3075,9 +3075,11 @@ public void processIncrementalBlockReport(final DatanodeID nodeID, + " is received from " + nodeID); } } - blockLog.debug("*BLOCK* NameNode.processIncrementalBlockReport: " + "from " + if (blockLog.isDebugEnabled()) { + blockLog.debug("*BLOCK* NameNode.processIncrementalBlockReport: " + "from " + nodeID + " receiving: " + receiving + ", " + " received: " + received + ", " + " deleted: " + deleted); + } } /**