9uapaw commented on a change in pull request #4060:
URL: https://github.com/apache/hadoop/pull/4060#discussion_r825640757
##########
File path:
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/RMAppManager.java
##########
@@ -640,6 +643,12 @@ private RMAppImpl createAndPopulateNewRMApp(
SchedulerUtils.normalizeAndValidateRequest(amReq, maxAllocation,
queue, isRecovery, rmContext, null, nodeLabelsEnabled);
+ String amNodeLabel = amReq.getNodeLabelExpression();
+ if (org.apache.commons.lang3.StringUtils.isEmpty(amNodeLabel)
Review comment:
Please use a simpler package identifier ie. Stringutils.isEmpty, or
import isEmpty directly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]