HADOOP-18065. ExecutorHelper.logThrowableFromAfterExecute() is too noisy. (#3860)
Downgrading warn logs to debug in case of InterruptedException Contributed By: Mukund Thakur
This commit is contained in:
parent
7dd8e900f8
commit
60c1c6d93c
|
@ -47,12 +47,12 @@ public final class ExecutorHelper {
|
||||||
try {
|
try {
|
||||||
((Future<?>) r).get();
|
((Future<?>) r).get();
|
||||||
} catch (ExecutionException ee) {
|
} catch (ExecutionException ee) {
|
||||||
LOG.warn(
|
LOG.debug(
|
||||||
"Execution exception when running task in " + Thread.currentThread()
|
"Execution exception when running task in {}", Thread.currentThread()
|
||||||
.getName());
|
.getName());
|
||||||
t = ee.getCause();
|
t = ee.getCause();
|
||||||
} catch (InterruptedException ie) {
|
} catch (InterruptedException ie) {
|
||||||
LOG.warn("Thread (" + Thread.currentThread() + ") interrupted: ", ie);
|
LOG.debug("Thread ( {} ) interrupted: ", Thread.currentThread(), ie);
|
||||||
Thread.currentThread().interrupt();
|
Thread.currentThread().interrupt();
|
||||||
} catch (Throwable throwable) {
|
} catch (Throwable throwable) {
|
||||||
t = throwable;
|
t = throwable;
|
||||||
|
@ -60,8 +60,8 @@ public final class ExecutorHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (t != null) {
|
if (t != null) {
|
||||||
LOG.warn("Caught exception in thread " + Thread
|
LOG.warn("Caught exception in thread {} + : ", Thread
|
||||||
.currentThread().getName() + ": ", t);
|
.currentThread().getName(), t);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue