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 471e6b9fc7..1f7a2f0779 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 @@ -3894,14 +3894,17 @@ public void run() { .debug("Namenode is in safemode, skipping scrubbing of corrupted lazy-persist files."); } } + } catch (Exception e) { + FSNamesystem.LOG.error( + "Ignoring exception in LazyPersistFileScrubber:", e); + } + + try { Thread.sleep(scrubIntervalSec * 1000); } catch (InterruptedException e) { FSNamesystem.LOG.info( "LazyPersistFileScrubber was interrupted, exiting"); break; - } catch (Exception e) { - FSNamesystem.LOG.error( - "Ignoring exception in LazyPersistFileScrubber:", e); } } }