GitHub user tdas opened a pull request:
https://github.com/apache/spark/pull/13613
[SPARK-15889][SQL][STREAMING] Add a unique id to ContinuousQuery
## What changes were proposed in this pull request?
ContinuousQueries have names that are unique across all the active ones.
However, when queries are rapidly restarted with same name, it causes races
conditions with the listener. A listener event from a stopped query can arrive
after the query has been restarted, leading to complexities in monitoring
infrastructure.
Along with this change, I have also consolidated all the messy code paths
to start queries with different sinks.
## How was this patch tested?
Added unit tests.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/tdas/spark SPARK-15889
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/13613.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 #13613
----
commit ff89c8171394baf730c1bba4e690af827ef0d21d
Author: Tathagata Das <[email protected]>
Date: 2016-06-10T23:30:10Z
Added ContinuousQuery.id and refactored ContinuousQueryManager.startQuery
----
---
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]