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

Wangda Tan commented on YARN-3977:
----------------------------------

[~curino],
The loop is to apply parameters such as {{naturalTerminationFactor}} to 
per-queue-per-partition before doing preemption. And the implementation assumes 
TempQueuePerPartition.leafQueue under same LeafQueue is same. I guess maybe the 
problem is caused by PlanQueue implementation (I guess you're doing tests for 
reservation system). TempQueuePerPartition.leafQueue will only be set if it's a 
LeafQueue (search for {{TempQueuePerPartition#setLeafQueue}}).

Thoughts?

> NPE in ProportionalCapacityPreemptionPolicy
> -------------------------------------------
>
>                 Key: YARN-3977
>                 URL: https://issues.apache.org/jira/browse/YARN-3977
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Carlo Curino
>
> There seems to be an NPE in the ProportionalCapacityPreemptionPolicy near 
> 643, likely due to getQueuePartitions() returning a null.



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

Reply via email to