GitHub user kayousterhout opened a pull request:

    https://github.com/apache/spark/pull/9154

    [SPARK-11163] Remove unnecessary addPendingTask calls.

    This commit removes unnecessary calls to addPendingTask in
    TaskSetManager.executorLost. These calls are unnecessary: for
    tasks that are still pending and haven't been launched, they're
    still in all of the correct pending lists, so calling addPendingTask
    has no effect. For tasks that are currently running (which may still be
    in the pending lists, depending on how they were scheduled), we call
    addPendingTask in handleFailedTask, so the calls at the beginning
    of executorLost are redundant.
    
    I think these calls are left over from when we re-computed the locality
    levels in addPendingTask; now that we call recomputeLocality separately,
    I don't think these are necessary.
    
    @markhamstra can you take a look at this?
    
    cc @vanzin 

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/kayousterhout/spark-1 SPARK-11163

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/9154.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #9154
    
----
commit 26aa8999a62eba632c670ba3dc57065f0d5ea4df
Author: Kay Ousterhout <[email protected]>
Date:   2015-10-16T23:32:00Z

    [SPARK-11163] Remove unnecessary addPendingTask calls.
    
    This commit removes unnecessary calls to addPendingTask in
    TaskSetManager.executorLost. These calls are unnecessary: for
    tasks that are still pending and haven't been launched, they're
    still in all of the correct pending lists, so calling addPendingTask
    has no effect. For tasks that are currently running (which may still be
    in the pending lists, depending on how they were scheduled), we call
    addPendingTask in handleFailedTask, so the calls at the beginning
    of executorLost are redundant.
    
    I think these calls are left over from when we re-computed the locality
    levels in addPendingTask; now that we call recomputeLocality separately,
    I don't think these are necessary.

----


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to