GitHub user JoshRosen opened a pull request:

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

    [SPARK-18640] Add synchronization to TaskScheduler.runningTasksByExecutors

    ## What changes were proposed in this pull request?
    
    The method `TaskSchedulerImpl.runningTasksByExecutors()` accesses the 
mutable `executorIdToRunningTaskIds` map without proper synchronization. In 
addition, as @markhamstra pointed out in #15986, the signature's use of 
parentheses is a little odd given that this is a pure getter method.
    
    This patch fixes both issues.
    
    ## How was this patch tested?
    
    Covered by existing tests.

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

    $ git pull https://github.com/JoshRosen/spark 
runningTasksByExecutors-thread-safety

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

    https://github.com/apache/spark/pull/16073.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 #16073
    
----
commit c866a1ab6fbc2b1440e594edaecb4e88f59d6a1d
Author: Josh Rosen <[email protected]>
Date:   2016-11-30T01:06:54Z

    Fix thread-safety issue in TaskScheduler.runningTasksByExecutors

----


---
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