Github user lirui-intel commented on the pull request:

    https://github.com/apache/spark/pull/892#issuecomment-45175085
  
    Yes @mateiz great idea. One quick question is that tasks in 
pendingTasksWithNoPrefs are considered as PROCESS_LOCAL. Suppose we have no 
tasks in pendingTasksForExecutor, but some tasks in pendingTasksForHost which 
are NODE_LOCAL. And also some tasks in pendingTasksWithNoPrefs whose preferred 
locations are not available. Now if the current allowed locality is 
PROCESS_LOCAL, TaskSetManager will pick tasks from pendingTasksWithNoPrefs 
rather than pendingTasksForHost.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to