From 2e7c51227006e85d83f5ffc7f252f2d98362c15d Mon Sep 17 00:00:00 2001 From: Karthik Kambatla Date: Wed, 5 Mar 2014 18:22:25 +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/trunk@1574604 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 aff92515ea..b94bd2ea87 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -256,6 +256,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 dbadd2d10a..9cc90bc722 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 SchedulerAppReport getSchedulerAppInfo( 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 ApplicationResourceUsageReport getAppResourceUsageReport( 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();