Merge -r 1166005:1166006 from trunk to branch-0.23 to fix MAPREDUCE-2938.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1166007 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Arun Murthy 2011-09-07 05:56:05 +00:00
parent c1e1e0857d
commit 210eb9ee47
2 changed files with 5 additions and 0 deletions

View File

@ -1210,6 +1210,9 @@ Release 0.23.0 - Unreleased
MAPREDUCE-2800. Set final progress for tasks to ensure all task information
is correctly logged to JobHistory. (Siddharth Seth via acmurthy)
MAPREDUCE-2938. Log application submission failure in CapacityScheduler.
(acmurthy)
Release 0.22.0 - Unreleased
INCOMPATIBLE CHANGES

View File

@ -355,6 +355,8 @@ implements ResourceScheduler, CapacitySchedulerContext {
try {
queue.submitApplication(SchedulerApp, user, queueName);
} catch (AccessControlException ace) {
LOG.info("Failed to submit application " + applicationAttemptId +
" to queue " + queueName + " from user " + user, ace);
this.rmContext.getDispatcher().getEventHandler().handle(
new RMAppAttemptRejectedEvent(applicationAttemptId,
ace.toString()));