YARN-6844. AMRMClientImpl.checkNodeLabelExpression() has wrong error message
(Contributed by Manikandan R via Daniel Templeton)
This commit is contained in:
parent
24853bf32a
commit
4c40cd451c
@ -772,10 +772,10 @@ private void checkNodeLabelExpression(T containerRequest) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Don't support specifying >= 2 node labels in a node label expression now
|
||||
// Don't support specifying > 1 node labels in a node label expression now
|
||||
if (exp.contains("&&") || exp.contains("||")) {
|
||||
throw new InvalidContainerRequestException(
|
||||
"Cannot specify more than two node labels"
|
||||
"Cannot specify more than one node label"
|
||||
+ " in a single node label expression");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user