YARN-7692. Skip validating priority acls while recovering applications. Contributed by Sunil G.
(cherry picked from commit c9bf813c9a
)
This commit is contained in:
parent
7854745c5f
commit
50f635ec73
|
@ -362,10 +362,16 @@ public class RMAppManager implements EventHandler<RMAppManagerEvent>,
|
|||
// Verify and get the update application priority and set back to
|
||||
// submissionContext
|
||||
UserGroupInformation userUgi = UserGroupInformation.createRemoteUser(user);
|
||||
|
||||
// Application priority needed to be validated only while submitting. During
|
||||
// recovery, validated priority could be recovered from submission context.
|
||||
if (!isRecovery) {
|
||||
Priority appPriority = scheduler.checkAndGetApplicationPriority(
|
||||
submissionContext.getPriority(), userUgi, submissionContext.getQueue(),
|
||||
submissionContext.getPriority(), userUgi,
|
||||
submissionContext.getQueue(),
|
||||
applicationId);
|
||||
submissionContext.setPriority(appPriority);
|
||||
}
|
||||
|
||||
// Since FairScheduler queue mapping is done inside scheduler,
|
||||
// if FairScheduler is used and the queue doesn't exist, we should not
|
||||
|
|
Loading…
Reference in New Issue