Skip to content

Commit

Permalink
YARN-11660. Fix performance regression for SingleConstraintAppPlaceme…
Browse files Browse the repository at this point in the history
…ntAllocator (#6623) Contributed by Junfan Zhang.

Reviewed-by: Shilun Fan <[email protected]>
Reviewed-by: Dinesh Chitlangia <[email protected]>
Signed-off-by: Shilun Fan <[email protected]>
  • Loading branch information
zuston authored Mar 15, 2024
1 parent a325876 commit 783cc3e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 783cc3e

Please sign in to comment.