HDFS-9555. LazyPersistFileScrubber should still sleep if there are errors in the clear progress. Contributed by Phil Yang.
(cherry picked from commit 5d4255a80156d2cacfea8184b41805070223d3a9)
This commit is contained in:
parent
5df89f9a8a
commit
3d3ed9b68e
@ -3896,14 +3896,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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user