From 29629020c10720cac0a3b7fb09878c7f3ab51c0f Mon Sep 17 00:00:00 2001 From: Wangda Tan Date: Tue, 24 Mar 2015 10:33:09 -0700 Subject: [PATCH] YARN-3383. AdminService should use warn instead of info to log exception when operation fails. (Li Lu via wangda) (cherry picked from commit 97a7277a2d696474b5c8e2d814c8291d4bde246e) --- hadoop-yarn-project/CHANGES.txt | 3 +++ .../hadoop/yarn/server/resourcemanager/AdminService.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt index 08fca563a87..684e92a79d9 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -55,6 +55,9 @@ Release 2.8.0 - UNRELEASED YARN-3241. FairScheduler handles "invalid" queue names inconsistently. (Zhihai Xu via kasha) + YARN-3383. AdminService should use "warn" instead of "info" to log exception + when operation fails. (Li Lu via wangda) + Release 2.7.0 - UNRELEASED INCOMPATIBLE CHANGES diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/AdminService.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/AdminService.java index 22b92c269e2..12714de2e89 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/AdminService.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/AdminService.java @@ -699,7 +699,7 @@ public class AdminService extends CompositeService implements private YarnException logAndWrapException(Exception exception, String user, String argName, String msg) throws YarnException { - LOG.info("Exception " + msg, exception); + LOG.warn("Exception " + msg, exception); RMAuditLogger.logFailure(user, argName, "", "AdminService", "Exception " + msg); return RPCUtil.getRemoteException(exception);