-
- Downloads
[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. Author: Shixiong Zhu <shixiong@databricks.com> Closes #9707 from zsxwing/fix-checkpoint.
Showing
- python/pyspark/streaming/tests.py 4 additions, 5 deletionspython/pyspark/streaming/tests.py
- streaming/src/main/scala/org/apache/spark/streaming/Checkpoint.scala 16 additions, 2 deletions...rc/main/scala/org/apache/spark/streaming/Checkpoint.scala
- streaming/src/test/scala/org/apache/spark/streaming/CheckpointSuite.scala 25 additions, 2 deletions...st/scala/org/apache/spark/streaming/CheckpointSuite.scala
Loading
Please register or sign in to comment