YARN-8054. Improve robustness of the LocalDirsHandlerService MonitoringTimerTask thread. Contributed by Jonathan Eagles
(cherry picked from commit 5aa7052e319c3273243dda9993fb6c2d776eb7cc) (cherry picked from commit 5d4b2c31a19b2ce7d94a9ca12ed6a1def428bb83)
This commit is contained in:
parent
d7d35fd4f0
commit
dc075b727a
@ -166,7 +166,12 @@ public MonitoringTimerTask(Configuration conf) throws YarnRuntimeException {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
checkDirs();
|
||||
try {
|
||||
checkDirs();
|
||||
} catch (Throwable t) {
|
||||
// Prevent uncaught exceptions from killing this thread
|
||||
LOG.warn("Error while checking local directories: ", t);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user