YARN-9307. node_partitions constraint does not work. Contributed by kyungwan nam.

This commit is contained in:
Weiwei Yang 2019-04-26 13:16:43 +08:00
parent d242b166ed
commit 94a895b94f
1 changed files with 4 additions and 1 deletions

View File

@ -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