Github user chenghao-intel commented on a diff in the pull request:
https://github.com/apache/spark/pull/11101#discussion_r53118993
--- Diff:
streaming/src/main/scala/org/apache/spark/streaming/scheduler/JobGenerator.scala
---
@@ -123,6 +126,12 @@ class JobGenerator(jobScheduler: JobScheduler) extends
Logging {
timedOut
}
+ // generate one more bacth to make sure RDD in lastJob is
checkpointed.
+ if (!jobScheduler.receiverTracker.hasUnallocatedBlocks &&
+ ssc.graph.isCheckpointMissedLastTime) {
+ Thread.sleep(ssc.graph.batchDuration.milliseconds)
--- End diff --
What about if the last batch execution takes longer time than the
batchDuration? Probably we need a notification with a timeout?
---
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]