GitHub user tdas opened a pull request:

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

    [SPARK-18657][SPARK-18668] Make StreamingQuery.id persists across restart, 
and not auto-generate name

    ## What changes were proposed in this pull request?
    Here are the major changes in this PR. 
    - Added the ability to recover `StreamingQuery.id` from checkpoint 
location, by writing the id to `checkpointLoc/metadata`.
    - Added StreamingQuery.runId which is unique for every query started and 
does not persist across restarts. 
    - Removed auto-generation of `StreamingQuery.name`. The purpose of name was 
to have the ability to define an identifier across restarts, but since id is 
precisely that, there is no need for a auto-generated name. This means name 
becomes purely cosmetic, and is null by default.
    - Added runId to `StreamingQueryListener` events and 
`StreamingQueryProgress`
    
    ## How was this patch tested?
    Update unit tests and new unit tests

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

    $ git pull https://github.com/tdas/spark SPARK-18657

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

    https://github.com/apache/spark/pull/16113.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 #16113
    
----
commit 26f3cf93e0321f48967462dce6436f3dbb072622
Author: Tathagata Das <tathagata.das1...@gmail.com>
Date:   2016-12-02T03:05:21Z

    Made StreamingQuery.id persist across restart, added StreamingQuery.runId

commit f103def70f5db8abec8ed8905db4e71a418b89c1
Author: Tathagata Das <tathagata.das1...@gmail.com>
Date:   2016-12-02T03:21:57Z

    Fixed test

commit f55b8525cb29f25d43628cd2b7e3ec1e294d73eb
Author: Tathagata Das <tathagata.das1...@gmail.com>
Date:   2016-12-02T03:25:11Z

    Made codahale metrics use id instead of name

commit c20f4fe28d30768857c094d28473656065263a23
Author: Tathagata Das <tathagata.das1...@gmail.com>
Date:   2016-12-02T03:47:04Z

    Made name to be default null

commit aca547f5000fec64ce939d810ace584f64d7e78b
Author: Tathagata Das <tathagata.das1...@gmail.com>
Date:   2016-12-02T03:47:59Z

    Merge remote-tracking branch 'apache-github/master' into HEAD

----


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to