YARN-9307. node_partitions constraint does not work. Contributed by kyungwan nam.
This commit is contained in:
parent
d242b166ed
commit
94a895b94f
|
@ -149,7 +149,10 @@ public final class PlacementConstraintsUtil {
|
|||
} else if (currentExp.getTargetType().equals(TargetType.NODE_ATTRIBUTE)
|
||||
&& currentExp.getTargetKey().equals(NODE_PARTITION)) {
|
||||
// This is a node partition expression, check it.
|
||||
canSatisfyNodePartitionConstraintExpresssion(currentExp, schedulerNode);
|
||||
if (!canSatisfyNodePartitionConstraintExpresssion(currentExp,
|
||||
schedulerNode)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
// return true if all targetExpressions are satisfied
|
||||
|
|
Loading…
Reference in New Issue