Wangda Tan commented on YARN-3977:

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}}).


> 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

Reply via email to