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:
Junfan Zhang 2024-03-15 08:14:38 +08:00 committed by GitHub
parent a325876fec
commit 783cc3eda0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -309,6 +309,8 @@ private void decreasePendingNumAllocation() {
// Deduct pending #allocations by 1 // Deduct pending #allocations by 1
ResourceSizing sizing = schedulingRequest.getResourceSizing(); ResourceSizing sizing = schedulingRequest.getResourceSizing();
sizing.setNumAllocations(sizing.getNumAllocations() - 1); sizing.setNumAllocations(sizing.getNumAllocations() - 1);
appSchedulingInfo.decPendingResource(targetNodePartition, sizing.getResources());
} }
@Override @Override