You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "zhihai xu (JIRA)" <ji...@apache.org> on 2014/10/28 01:20:34 UTC
[jira] [Created] (YARN-2757) potential NPE in
checkNodeLabelExpression of SchedulerUtils for nodeLabels.
zhihai xu created YARN-2757:
-------------------------------
Summary: potential NPE in checkNodeLabelExpression of SchedulerUtils for nodeLabels.
Key: YARN-2757
URL: https://issues.apache.org/jira/browse/YARN-2757
Project: Hadoop YARN
Issue Type: Improvement
Reporter: zhihai xu
Assignee: zhihai xu
pontential NPE in checkNodeLabelExpression of SchedulerUtils for nodeLabels.
since we check the nodeLabels null at
{code}
if (!str.trim().isEmpty()
&& (nodeLabels == null || !nodeLabels.contains(str.trim()))) {
return false;
}
{code}
We should also check nodeLabels null at
{code}
if (!nodeLabels.isEmpty()) {
return false;
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)