From a2e3fab71044200c5507105451cb51c53d1358fe Mon Sep 17 00:00:00 2001 From: Karthik Kambatla Date: Wed, 5 Mar 2014 18:23:24 +0000 Subject: [PATCH] YARN-1785. FairScheduler treats app lookup failures as ERRORs. (bc Wong via kasha) git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1574605 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-yarn-project/CHANGES.txt | 3 +++ .../resourcemanager/scheduler/fair/FairScheduler.java | 8 ++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt index 59f3bbe3524..b5ecb17342f 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -241,6 +241,9 @@ Release 2.4.0 - UNRELEASED token for the right ResourceManager when HA is enabled. (Karthik Kambatla via vinodkv) + YARN-1785. FairScheduler treats app lookup failures as ERRORs. + (bc Wong via kasha) + OPTIMIZATIONS BUG FIXES diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fair/FairScheduler.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fair/FairScheduler.java index dbadd2d10a1..9cc90bc7225 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fair/FairScheduler.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fair/FairScheduler.java @@ -1094,7 +1094,9 @@ public class FairScheduler extends AbstractYarnScheduler { ApplicationAttemptId appAttemptId) { FSSchedulerApp attempt = getSchedulerApp(appAttemptId); if (attempt == null) { - LOG.error("Request for appInfo of unknown attempt" + appAttemptId); + if (LOG.isDebugEnabled()) { + LOG.debug("Request for appInfo of unknown attempt " + appAttemptId); + } return null; } return new SchedulerAppReport(attempt); @@ -1105,7 +1107,9 @@ public class FairScheduler extends AbstractYarnScheduler { ApplicationAttemptId appAttemptId) { FSSchedulerApp attempt = getSchedulerApp(appAttemptId); if (attempt == null) { - LOG.error("Request for appInfo of unknown attempt" + appAttemptId); + if (LOG.isDebugEnabled()) { + LOG.debug("Request for appInfo of unknown attempt " + appAttemptId); + } return null; } return attempt.getResourceUsageReport();