YARN-10466.Fix NullPointerException in yarn-services Component.java. Contributed by D M Murali Krishna Reddy

This commit is contained in:
Brahma Reddy Battula 2021-03-30 13:52:07 +05:30
parent 6577bf1891
commit 413a4c3c05
1 changed files with 5 additions and 0 deletions

View File

@ -830,6 +830,11 @@ public void requestContainers(long count) {
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