YARN-11660. Fix performance regression for SingleConstraintAppPlacementAllocator (#6623) Contributed by Junfan Zhang.
Reviewed-by: Shilun Fan <slfan1989@apache.org> Reviewed-by: Dinesh Chitlangia <dineshc@apache.org> Signed-off-by: Shilun Fan <slfan1989@apache.org>
This commit is contained in:
parent
a325876fec
commit
783cc3eda0
@ -309,6 +309,8 @@ private void decreasePendingNumAllocation() {
|
||||
// Deduct pending #allocations by 1
|
||||
ResourceSizing sizing = schedulingRequest.getResourceSizing();
|
||||
sizing.setNumAllocations(sizing.getNumAllocations() - 1);
|
||||
|
||||
appSchedulingInfo.decPendingResource(targetNodePartition, sizing.getResources());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user