YARN-8054. Improve robustness of the LocalDirsHandlerService MonitoringTimerTask thread. Contributed by Jonathan Eagles

This commit is contained in:
Jason Lowe 2018-03-21 17:19:20 -05:00
parent 389bc6d3da
commit 5aa7052e31
1 changed files with 6 additions and 1 deletions

View File

@ -166,7 +166,12 @@ public class LocalDirsHandlerService extends AbstractService {
@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);
}
}
}