YARN-6248. user is not removed from UsersManager’s when app is killed with pending container requests. Contributed by Eric Payne.
This commit is contained in:
parent
c61bc2d843
commit
c1386a90d7
|
@ -872,7 +872,9 @@ public class UsersManager implements AbstractUsersManager {
|
||||||
this.writeLock.lock();
|
this.writeLock.lock();
|
||||||
|
|
||||||
// For UT case: We might need to add the user to users list.
|
// For UT case: We might need to add the user to users list.
|
||||||
User user = getUserAndAddIfAbsent(userName);
|
User user = getUser(userName);
|
||||||
|
if (user == null) return;
|
||||||
|
|
||||||
ResourceUsage resourceUsage = user.getResourceUsage();
|
ResourceUsage resourceUsage = user.getResourceUsage();
|
||||||
// If User is moved to non-active list, moved resource usage from
|
// If User is moved to non-active list, moved resource usage from
|
||||||
// non-active to active list.
|
// non-active to active list.
|
||||||
|
|
Loading…
Reference in New Issue