HDFS-9555. LazyPersistFileScrubber should still sleep if there are errors in the clear progress. Contributed by Phil Yang.

This commit is contained in:
Kihwal Lee 2016-04-22 11:08:44 -05:00
parent 19f0f9608e
commit 5d4255a801
1 changed files with 6 additions and 3 deletions

View File

@ -3894,14 +3894,17 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean,
.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);
}
}
}