YARN-8054. Improve robustness of the LocalDirsHandlerService MonitoringTimerTask thread. Contributed by Jonathan Eagles
(cherry picked from commit5aa7052e31
) (cherry picked from commit5d4b2c31a1
)
This commit is contained in:
parent
d7d35fd4f0
commit
dc075b727a
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue