GitHub user andrewor14 opened a pull request:

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

    [SPARK-1769] Executor loss causes NPE race condition

    This PR replaces the Schedulable data structures in Pool.scala with 
thread-safe ones from java. Note that Scala's `with SynchronizedBuffer` trait 
is soon to be deprecated in 2.11 because it is "unreliable." We should slowly 
drift away from `SynchronizedBuffer` in other places too.
    
    Note that this PR introduces an API-breaking change; `sc.getAllPools` now 
returns an Array rather than an ArrayBuffer. This is because we want this 
method to return an immutable copy rather than one for which modifications take 
no effect in the original data structure.

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

    $ git pull https://github.com/andrewor14/spark pool-npe

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

    https://github.com/apache/spark/pull/762.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 #762
    
----
commit 07d720c4b3883c397cc903ea61d3fc871e883429
Author: Andrew Or <[email protected]>
Date:   2014-05-13T23:16:21Z

    Synchronize Schedulable data structures

----


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

Reply via email to