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 wh...@apache.org on 2014/10/24 08:58:41 UTC

git commit: HDFS-7258. CacheReplicationMonitor rescan schedule log should use DEBUG level instead of INFO level. Contributed by Xiaoyu Yao.

Repository: hadoop
Updated Branches:
  refs/heads/trunk 071c925c7 -> 0942c99eb


HDFS-7258. CacheReplicationMonitor rescan schedule log should use DEBUG level instead of INFO level. Contributed by Xiaoyu Yao.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/0942c99e
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/0942c99e
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/0942c99e

Branch: refs/heads/trunk
Commit: 0942c99eba12f6baf5609c9621cd07b09618a97e
Parents: 071c925
Author: Haohui Mai <wh...@apache.org>
Authored: Thu Oct 23 23:57:56 2014 -0700
Committer: Haohui Mai <wh...@apache.org>
Committed: Thu Oct 23 23:58:32 2014 -0700

----------------------------------------------------------------------
 hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt             |  3 +++
 .../server/blockmanagement/CacheReplicationMonitor.java | 12 +++++-------
 2 files changed, 8 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/0942c99e/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
index 090befc..7975c43 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
+++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
@@ -334,6 +334,9 @@ Release 2.7.0 - UNRELEASED
     HDFS-7232. Populate hostname in httpfs audit log (Zoran Dimitrijevic 
     via aw)
 
+    HDFS-7258. CacheReplicationMonitor rescan schedule log should use DEBUG
+    level instead of INFO level. (Xiaoyu Yao via wheat9)
+
 Release 2.6.0 - UNRELEASED
 
   INCOMPATIBLE CHANGES

http://git-wip-us.apache.org/repos/asf/hadoop/blob/0942c99e/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/CacheReplicationMonitor.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/CacheReplicationMonitor.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/CacheReplicationMonitor.java
index fa5083c..a0f3503 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/CacheReplicationMonitor.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/CacheReplicationMonitor.java
@@ -166,17 +166,16 @@ public class CacheReplicationMonitor extends Thread implements Closeable {
         try {
           while (true) {
             if (shutdown) {
-              LOG.info("Shutting down CacheReplicationMonitor");
+              LOG.debug("Shutting down CacheReplicationMonitor");
               return;
             }
             if (completedScanCount < neededScanCount) {
-              LOG.info("Rescanning because of pending operations");
+              LOG.debug("Rescanning because of pending operations");
               break;
             }
             long delta = (startTimeMs + intervalMs) - curTimeMs;
             if (delta <= 0) {
-              LOG.info("Rescanning after " + (curTimeMs - startTimeMs) +
-                  " milliseconds");
+              LOG.debug("Rescanning after {} milliseconds", (curTimeMs - startTimeMs));
               break;
             }
             doRescan.await(delta, TimeUnit.MILLISECONDS);
@@ -198,9 +197,8 @@ public class CacheReplicationMonitor extends Thread implements Closeable {
         } finally {
           lock.unlock();
         }
-        LOG.info("Scanned " + scannedDirectives + " directive(s) and " +
-            scannedBlocks + " block(s) in " + (curTimeMs - startTimeMs) + " " +
-            "millisecond(s).");
+        LOG.debug("Scanned {} directive(s) and {} block(s) in {} millisecond(s).",
+            scannedDirectives, scannedBlocks, (curTimeMs - startTimeMs));
       }
     } catch (InterruptedException e) {
       LOG.info("Shutting down CacheReplicationMonitor.");