YARN-4603. FairScheduler should mention user requested queuename in error message when failed in queue ACL check. (Tao Jie via kasha)

This commit is contained in:
Karthik Kambatla 2016-01-21 17:40:59 +01:00
parent f858ac2426
commit 4992398aee
2 changed files with 5 additions and 1 deletions

View File

@ -101,6 +101,9 @@ Release 2.9.0 - UNRELEASED
YARN-4559. Make leader elector and zk store share the same curator client. YARN-4559. Make leader elector and zk store share the same curator client.
(Jian He via xgong) (Jian He via xgong)
YARN-4603. FairScheduler should mention user requested queuename in error
message when failed in queue ACL check. (Tao Jie via kasha)
OPTIMIZATIONS OPTIMIZATIONS
BUG FIXES BUG FIXES

View File

@ -656,7 +656,8 @@ protected synchronized void addApplication(ApplicationId applicationId,
if (!queue.hasAccess(QueueACL.SUBMIT_APPLICATIONS, userUgi) if (!queue.hasAccess(QueueACL.SUBMIT_APPLICATIONS, userUgi)
&& !queue.hasAccess(QueueACL.ADMINISTER_QUEUE, userUgi)) { && !queue.hasAccess(QueueACL.ADMINISTER_QUEUE, userUgi)) {
String msg = "User " + userUgi.getUserName() + String msg = "User " + userUgi.getUserName() +
" cannot submit applications to queue " + queue.getName(); " cannot submit applications to queue " + queue.getName() +
"(requested queuename is " + queueName + ")";
LOG.info(msg); LOG.info(msg);
rmContext.getDispatcher().getEventHandler() rmContext.getDispatcher().getEventHandler()
.handle(new RMAppEvent(applicationId, .handle(new RMAppEvent(applicationId,