MAPREDUCE-2938. Log application submission failure in CapacityScheduler

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1166006 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Arun Murthy 2011-09-07 05:54:25 +00:00
parent 8815bdf304
commit 0ecba04727
2 changed files with 5 additions and 0 deletions

View File

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

View File

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