瀏覽代碼

HDFS-13913. LazyPersistFileScrubber.run() should log meaningful warn message. Contributed by Daniel Green.

Surendra Singh Lilhore 5 年之前
父節點
當前提交
d98c54816d

+ 5 - 2
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java

@@ -4244,8 +4244,11 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean,
             }
           }
         } catch (Exception e) {
-          FSNamesystem.LOG.error(
-              "Ignoring exception in LazyPersistFileScrubber:", e);
+          FSNamesystem.LOG.warn(
+              "LazyPersistFileScrubber encountered an exception while "
+                      + "scanning for lazyPersist files with missing blocks. "
+                      + "Scanning will retry in " + scrubIntervalSec +
+                      " seconds. Exception: ", e);
         }
 
         try {