YARN-11482. Fix bug of DRF comparision DominantResourceFairnessComparator2 in fair scheduler. (#5607). Contributed by Xiaoqiao He.

Reviewed-by: Shilun Fan <slfan1989@apache.org>
This commit is contained in:
Hexiaoqiao 2023-04-29 11:18:42 +08:00 committed by GitHub
parent 5ed7e912dc
commit 70c0aa342e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -390,7 +390,7 @@ public class DominantResourceFairnessPolicy extends SchedulingPolicy {
// share for that resource
boolean s1Needy = resourceInfo1[dominant1].getValue() <
minShareInfo1[dominant1].getValue();
boolean s2Needy = resourceInfo1[dominant2].getValue() <
boolean s2Needy = resourceInfo2[dominant2].getValue() <
minShareInfo2[dominant2].getValue();
int res;