YARN-10934. Fix LeafQueue#activateApplication NPE when the user of the pending application is missing from usersManager. Contributed by Benjamin Teke

Co-authored-by: Benjamin Teke <bteke@cloudera.com>
This commit is contained in:
Benjamin Teke 2021-10-07 20:11:42 +02:00 committed by GitHub
parent 6bad3badf5
commit 35eff54556
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -878,7 +878,7 @@ public class LeafQueue extends AbstractCSQueue {
}
// Check user am resource limit
User user = getUser(application.getUser());
User user = usersManager.getUserAndAddIfAbsent(application.getUser());
Resource userAMLimit = userAmPartitionLimit.get(partitionName);
// Verify whether we already calculated user-am-limit for this label.