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

Bikas Saha commented on TEZ-1742:
---------------------------------

Right. An int will do. I think I initially wrote the code assuming that I would 
need the actual requests but it turns out that is not the case. So a count is 
sufficient. The priority equality check is there to ensure that we are only 
counting the number of pending requests at the highest priority and not other 
priorities.
Looks like my IDE functionality to flag unused imports is not working anymore. 
will fix.

> Improve response time of internal preemption
> --------------------------------------------
>
>                 Key: TEZ-1742
>                 URL: https://issues.apache.org/jira/browse/TEZ-1742
>             Project: Apache Tez
>          Issue Type: Task
>            Reporter: Bikas Saha
>            Assignee: Bikas Saha
>         Attachments: TEZ-1742.1.patch
>
>
> Tez YARN Task Scheduler currently preempts 1 running task at a time when a 
> higher priority task is waiting and there are no available resources. When a 
> large number of higher priority tasks are pending then it can take a long 
> time to preempt the required number of lower priority tasks.



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

Reply via email to