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
This commit is contained in:
Karthik Kambatla 2014-03-05 18:22:25 +00:00
parent e1162ebb1f
commit 2e7c512270
2 changed files with 9 additions and 2 deletions

View File

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

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