GitHub user andrewor14 opened a pull request:
https://github.com/apache/spark/pull/4871
[SPARK-6133] Make sc.stop() idempotent
Before we would get the following error if we called `sc.stop()` twice.
This is because the listener bus would try to post the end event again even
after it has already stopped. This happens occasionally when flaky tests fail,
usually as a result of other sources of error.
```
15/03/02 18:07:25.682 pool-1-thread-1 ERROR LiveListenerBus:
SparkListenerBus has already stopped! Dropping event
SparkListenerApplicationEnd(1425348445682)
```
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/andrewor14/spark sc-stop
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/4871.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 #4871
----
commit 915db1620caee57126b436e9089c4715b5f1b766
Author: Andrew Or <[email protected]>
Date: 2015-03-03T09:02:05Z
Move code into code
----
---
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]