[jira] [Created] (YARN-4338) NPE in RegularContainerAllocator.preCheckForNewContainer()

2015-11-09 Thread Xinwei Qin (JIRA)
Xinwei Qin  created YARN-4338:
-

 Summary: NPE in RegularContainerAllocator.preCheckForNewContainer()
 Key: YARN-4338
 URL: https://issues.apache.org/jira/browse/YARN-4338
 Project: Hadoop YARN
  Issue Type: Bug
Reporter: Xinwei Qin 
Priority: Minor


The codes in RegularContainerAllocator.preCheckForNewContainer():
{code}
if (anyRequest.getNodeLabelExpression()
.equals(RMNodeLabelsManager.NO_LABEL)) {
  missedNonPartitionedRequestSchedulingOpportunity =
  application
  .addMissedNonPartitionedRequestSchedulingOpportunity(priority);
}
{code}
{code}anyRequest.getNodeLabelExpression(){code}may return null.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (YARN-4338) NPE in RegularContainerAllocator.preCheckForNewContainer()

2015-11-09 Thread Xinwei Qin (JIRA)

 [ 
https://issues.apache.org/jira/browse/YARN-4338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Xinwei Qin  updated YARN-4338:
--
Attachment: YARN-4338.001.patch

Simple fix is to check if the value is null.

> NPE in RegularContainerAllocator.preCheckForNewContainer()
> --
>
> Key: YARN-4338
> URL: https://issues.apache.org/jira/browse/YARN-4338
> Project: Hadoop YARN
>  Issue Type: Bug
>Reporter: Xinwei Qin 
>Priority: Minor
> Attachments: YARN-4338.001.patch
>
>
> The codes in RegularContainerAllocator.preCheckForNewContainer():
> {code}
> if (anyRequest.getNodeLabelExpression()
> .equals(RMNodeLabelsManager.NO_LABEL)) {
>   missedNonPartitionedRequestSchedulingOpportunity =
>   application
>   .addMissedNonPartitionedRequestSchedulingOpportunity(priority);
> }
> {code}
> {code}anyRequest.getNodeLabelExpression(){code}may return null.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (YARN-4338) NPE in RegularContainerAllocator.preCheckForNewContainer()

2015-11-09 Thread Xinwei Qin (JIRA)

[ 
https://issues.apache.org/jira/browse/YARN-4338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=14996246#comment-14996246
 ] 

Xinwei Qin  commented on YARN-4338:
---

Thanks [~Naganarasimha] for your suggestion, the test case passed with this 
modification.

> NPE in RegularContainerAllocator.preCheckForNewContainer()
> --
>
> Key: YARN-4338
> URL: https://issues.apache.org/jira/browse/YARN-4338
> Project: Hadoop YARN
>  Issue Type: Bug
>Reporter: Xinwei Qin 
>Priority: Minor
> Attachments: YARN-4338.001.patch
>
>
> The codes in RegularContainerAllocator.preCheckForNewContainer():
> {code}
> if (anyRequest.getNodeLabelExpression()
> .equals(RMNodeLabelsManager.NO_LABEL)) {
>   missedNonPartitionedRequestSchedulingOpportunity =
>   application
>   .addMissedNonPartitionedRequestSchedulingOpportunity(priority);
> }
> {code}
> {code}anyRequest.getNodeLabelExpression(){code}may return null.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)