From d98c54816d21d59c4d877ae4b1917b22268ffcef Mon Sep 17 00:00:00 2001 From: Surendra Singh Lilhore Date: Fri, 6 Sep 2019 18:12:42 +0530 Subject: [PATCH] HDFS-13913. LazyPersistFileScrubber.run() should log meaningful warn message. Contributed by Daniel Green. --- .../apache/hadoop/hdfs/server/namenode/FSNamesystem.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java index 9d6e99e2a6..c9b05299cf 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java @@ -4244,8 +4244,11 @@ public void run() { } } } 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 {