YARN-6248. user is not removed from UsersManager’s when app is killed with pending container requests. Contributed by Eric Payne.

(cherry picked from commit c1386a90d7)
This commit is contained in:
Sunil G 2017-03-04 13:46:35 +05:30 committed by Eric Payne
parent 6e20ae954c
commit ef342455cb
1 changed files with 3 additions and 1 deletions

View File

@ -966,7 +966,9 @@ public class UsersManager implements AbstractUsersManager {
this.writeLock.lock();
// 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();
// If User is moved to non-active list, moved resource usage from
// non-active to active list.