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:
parent
6bad3badf5
commit
35eff54556
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue