diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 94eb359bd79..159d061c89d 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -616,6 +616,9 @@ Branch-2 ( Unreleased changes ) HDFS-3048. Small race in BlockManager#close. (Andy Isaacson via eli) + HDFS-3194. DataNode block scanner is running too frequently. + (Andy Isaacson via eli) + BREAKDOWN OF HDFS-3042 SUBTASKS HDFS-2185. HDFS portion of ZK-based FailoverController (todd) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BlockPoolSliceScanner.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BlockPoolSliceScanner.java index 3e6d9022232..55e8ec63b0d 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BlockPoolSliceScanner.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BlockPoolSliceScanner.java @@ -554,11 +554,9 @@ class BlockPoolSliceScanner { } private synchronized void startNewPeriod() { - if (LOG.isDebugEnabled()) { - LOG.debug("Starting a new period : work left in prev period : " + LOG.info("Starting a new period : work left in prev period : " + String.format("%.2f%%", totalBytesToScan == 0 ? 0 : (bytesLeft * 100.0) / totalBytesToScan)); - } // reset the byte counts : bytesLeft = totalBytesToScan; @@ -566,7 +564,6 @@ class BlockPoolSliceScanner { } void scanBlockPoolSlice() { - startNewPeriod(); // Create a new processedBlocks structure processedBlocks = new HashMap(); if (!assignInitialVerificationTimes()) {