Skip to content

Commit 0b8cb7f

Browse files
mukund-thakurHarshitGupta11
authored andcommitted
HADOOP-18065. ExecutorHelper.logThrowableFromAfterExecute() is too noisy. (apache#3860)
Downgrading warn logs to debug in case of InterruptedException Contributed By: Mukund Thakur
1 parent 9c438f2 commit 0b8cb7f

File tree

1 file changed

+5
-5
lines changed
  • hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/concurrent

1 file changed

+5
-5
lines changed

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/concurrent/ExecutorHelper.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,21 @@ static void logThrowableFromAfterExecute(Runnable r, Throwable t) {
4747
try {
4848
((Future<?>) r).get();
4949
} catch (ExecutionException ee) {
50-
LOG.warn(
51-
"Execution exception when running task in " + Thread.currentThread()
50+
LOG.debug(
51+
"Execution exception when running task in {}", Thread.currentThread()
5252
.getName());
5353
t = ee.getCause();
5454
} catch (InterruptedException ie) {
55-
LOG.warn("Thread (" + Thread.currentThread() + ") interrupted: ", ie);
55+
LOG.debug("Thread ( {} ) interrupted: ", Thread.currentThread(), ie);
5656
Thread.currentThread().interrupt();
5757
} catch (Throwable throwable) {
5858
t = throwable;
5959
}
6060
}
6161

6262
if (t != null) {
63-
LOG.warn("Caught exception in thread " + Thread
64-
.currentThread().getName() + ": ", t);
63+
LOG.warn("Caught exception in thread {} + : ", Thread
64+
.currentThread().getName(), t);
6565
}
6666
}
6767

0 commit comments

Comments
 (0)