Browse Source

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

(cherry picked from commit 0942c99eba12f6baf5609c9621cd07b09618a97e)
Haohui Mai 10 năm trước cách đây
mục cha
commit
a9beec0221

+ 7 - 4
hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt

@@ -8,11 +8,14 @@ Release 2.6.5 - UNRELEASED
 
   IMPROVEMENTS
 
-     HDFS-9629. Update the footer of Web UI to show year 2016
-     (Xiao Chen and Vinayakumar B via vinayakumarb)
+    HDFS-9629. Update the footer of Web UI to show year 2016
+    (Xiao Chen and Vinayakumar B via vinayakumarb)
 
-     HDFS-9688. Test the effect of nested encryption zones in HDFS downgrade.
-     (zhz)
+    HDFS-9688. Test the effect of nested encryption zones in HDFS downgrade.
+    (zhz)
+
+    HDFS-7258. CacheReplicationMonitor rescan schedule log should use DEBUG
+    level instead of INFO level. (Xiaoyu Yao via wheat9)
 
   OPTIMIZATIONS
 

+ 5 - 7
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.");