You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by mt...@apache.org on 2022/01/10 09:28:20 UTC
[hadoop] branch branch-3.3 updated: HADOOP-18065. ExecutorHelper.logThrowableFromAfterExecute() is too noisy. (#3860)
This is an automated email from the ASF dual-hosted git repository.
mthakur pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.3 by this push:
new 60c1c6d HADOOP-18065. ExecutorHelper.logThrowableFromAfterExecute() is too noisy. (#3860)
60c1c6d is described below
commit 60c1c6d93c0270ca73c3d2b35aaff75489127874
Author: Mukund Thakur <mt...@cloudera.com>
AuthorDate: Thu Jan 6 10:54:27 2022 +0530
HADOOP-18065. ExecutorHelper.logThrowableFromAfterExecute() is too noisy. (#3860)
Downgrading warn logs to debug in case of InterruptedException
Contributed By: Mukund Thakur
---
.../java/org/apache/hadoop/util/concurrent/ExecutorHelper.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/concurrent/ExecutorHelper.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/concurrent/ExecutorHelper.java
index 0b34951..5cc92eb 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/concurrent/ExecutorHelper.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/concurrent/ExecutorHelper.java
@@ -47,12 +47,12 @@ public final class ExecutorHelper {
try {
((Future<?>) r).get();
} catch (ExecutionException ee) {
- LOG.warn(
- "Execution exception when running task in " + Thread.currentThread()
+ LOG.debug(
+ "Execution exception when running task in {}", Thread.currentThread()
.getName());
t = ee.getCause();
} catch (InterruptedException ie) {
- LOG.warn("Thread (" + Thread.currentThread() + ") interrupted: ", ie);
+ LOG.debug("Thread ( {} ) interrupted: ", Thread.currentThread(), ie);
Thread.currentThread().interrupt();
} catch (Throwable throwable) {
t = throwable;
@@ -60,8 +60,8 @@ public final class ExecutorHelper {
}
if (t != null) {
- LOG.warn("Caught exception in thread " + Thread
- .currentThread().getName() + ": ", t);
+ LOG.warn("Caught exception in thread {} + : ", Thread
+ .currentThread().getName(), t);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org