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
This commit is contained in:
Karthik Kambatla 2014-03-05 18:23:24 +00:00
parent b5e010ca0d
commit a2e3fab710
2 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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();