YARN-10466.Fix NullPointerException in yarn-services Component.java. Contributed by D M Murali Krishna Reddy
This commit is contained in:
parent
6577bf1891
commit
413a4c3c05
|
@ -830,6 +830,11 @@ public class Component implements EventHandler<ComponentEvent> {
|
|||
targetExpressions.toArray(new TargetExpression[0])).build();
|
||||
break;
|
||||
}
|
||||
if (constraint == null) {
|
||||
LOG.info("[COMPONENT {}] Placement constraint: null ",
|
||||
componentSpec.getName());
|
||||
continue;
|
||||
}
|
||||
// The default AND-ed final composite constraint
|
||||
if (finalConstraint != null) {
|
||||
finalConstraint = PlacementConstraints
|
||||
|
|
Loading…
Reference in New Issue