GitHub user jose-torres opened a pull request:
https://github.com/apache/spark/pull/20710
[SPARK-23559][SS] Add epoch ID to DataWriterFactory.
## What changes were proposed in this pull request?
Add an epoch ID argument to DataWriterFactory for use in streaming. As
detailed in the JIRA, this is required to support a consistent lifecycle.
I considered making a separate streaming interface and adding the epoch ID
only to that one, but I think it requires a lot of extra work for no real gain.
I think it makes sense to define epoch 0 as the one and only epoch of a
non-streaming query.
## How was this patch tested?
existing unit tests
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jose-torres/spark api2
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/20710.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 #20710
----
commit 3b21dd0e6413326267386d38e06855a5914958a4
Author: Jose Torres <jose@...>
Date: 2018-02-21T18:52:45Z
change api
commit c5f0de035dd8fd540099fc05740df4e09c1048e4
Author: Jose Torres <jose@...>
Date: 2018-02-21T23:00:30Z
add docs
commit ad5523d6dadcef29730e3ebca352d0832fa33b65
Author: Jose Torres <jose@...>
Date: 2018-02-22T19:56:44Z
don't use epochId in batch sources
commit 5bbd497214ef63b55df000cd56912121f090526e
Author: Jose Torres <jose@...>
Date: 2018-02-22T21:18:41Z
change comment
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]