This is an automated email from the ASF dual-hosted git repository.
shuzirra pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new 35eff54 YARN-10934. Fix LeafQueue#activateApplication NPE when the
user of the pending application is missing from usersManager. Contributed by
Benjamin Teke
35eff54 is described below
commit 35eff545560d9275a03d3d2dcb019d7cdfc39e3e
Author: Benjamin Teke <[email protected]>
AuthorDate: Thu Oct 7 20:11:42 2021 +0200
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 <[email protected]>
---
.../yarn/server/resourcemanager/scheduler/capacity/LeafQueue.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/LeafQueue.java
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/LeafQueue.java
index 2c0593d0..9352a0f 100644
---
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/LeafQueue.java
+++
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/LeafQueue.java
@@ -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.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]