Github user vanzin commented on the pull request:
https://github.com/apache/spark/pull/6973#issuecomment-115371870
None of the changes here are in `SparkContext`; the PR title is misleading,
since you're changing `SparkEnv`. What code path would cause `SparkEnv.stop()`
to be called multiple times?
`SparkContext.stop()` is already idempotent:
if (!stopped.compareAndSet(false, true)) {
logInfo("SparkContext already stopped.")
return
}
---
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]