GitHub user aray opened a pull request:
https://github.com/apache/spark/pull/18306
[SPARK-21029][SS] All StreamingQuery should be stopped when the
SparkSession is stopped
## What changes were proposed in this pull request?
Adds method to `StreamingQueryManager` that stops all active queries. Calls
this method when `SparkSession.stop` is called.
## How was this patch tested?
Two unit tests.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/aray/spark SPARK-21029
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/18306.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 #18306
----
commit 7da14aefcaf618e9f64459d50c5f78502eeb1f59
Author: Andrew Ray <[email protected]>
Date: 2017-06-14T18:50:15Z
SPARK-21029
commit 38f9566fd6503dace04b47a4d79bc6b412e49113
Author: Andrew Ray <[email protected]>
Date: 2017-06-14T20:16:00Z
call in spark session close instead of shutdown hook
commit a64c0ff1c057dca48f0101232c433ef80d24e883
Author: Andrew Ray <[email protected]>
Date: 2017-06-14T20:29:26Z
clean imports
----
---
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]