GitHub user zsxwing opened a pull request:

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

    [SPARK-11740][Streaming]Fix the race condition of two checkpoints in a batch

    We will do checkpoint when generating a batch and completing a batch. When 
the processing time of a batch is greater than the batch interval, 
checkpointing for completing an old batch may run after checkpointing for 
generating a new batch. If this happens, checkpoint of an old batch actually 
has the latest information, so we want to recovery from it. This PR will use 
the latest checkpoint time as the file name, so that we can always recovery 
from the latest checkpoint file.

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

    $ git pull https://github.com/zsxwing/spark fix-checkpoint

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

    https://github.com/apache/spark/pull/9707.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 #9707
    
----
commit 494696e20382c65871cbb3c54d5155263a581018
Author: Shixiong Zhu <[email protected]>
Date:   2015-11-13T17:47:14Z

    Fix the race condition of two checkpoints in a batch

----


---
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]

Reply via email to