GitHub user zsxwing opened a pull request:

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

    [SPARK-7693][Core] Remove "import 
scala.concurrent.ExecutionContext.Implicits.global"

    Learnt a lesson from SPARK-7655: Spark should avoid to use 
`scala.concurrent.ExecutionContext.Implicits.global` because the user may 
submit blocking actions to `scala.concurrent.ExecutionContext.Implicits.global` 
and exhaust all threads in it. This could crash Spark. So Spark should always 
use its own thread pools for safety.
    
    This PR removes all usages of 
`scala.concurrent.ExecutionContext.Implicits.global` and uses proper thread 
pools to replace them.

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

    $ git pull https://github.com/zsxwing/spark SPARK-7693

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

    https://github.com/apache/spark/pull/6223.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 #6223
    
----
commit cf4b3fc8eedd7ddca618d8bec441820303241620
Author: zsxwing <[email protected]>
Date:   2015-05-16T04:51:52Z

    Remove "import scala.concurrent.ExecutionContext.Implicits.global"

----


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