YARN-7947. Capacity Scheduler intra-queue preemption can NPE for non-schedulable apps. Contributed by Eric Payne.

This commit is contained in:
Sunil G 2018-02-21 14:35:57 +05:30
parent 86b227a1fb
commit bdd2a184d7

View File

@ -412,7 +412,7 @@ private PriorityQueue<TempAppPerPartition> createTempAppForResCalculation(
TempUserPerPartition tmpUser = new TempUserPerPartition(
tq.leafQueue.getUser(userName), tq.queueName,
Resources.clone(userResourceUsage.getUsed(partition)),
Resources.clone(userSpecificAmUsed),
Resources.clone(amUsed),
Resources.clone(userResourceUsage.getReserved(partition)),
Resources.none());