Github user tdas commented on a diff in the pull request:
https://github.com/apache/spark/pull/4032#discussion_r23366311
--- Diff:
streaming/src/main/scala/org/apache/spark/streaming/scheduler/JobGenerator.scala
---
@@ -206,9 +208,13 @@ class JobGenerator(jobScheduler: JobScheduler) extends
Logging {
val timesToReschedule = (pendingTimes ++
downTimes).distinct.sorted(Time.ordering)
logInfo("Batches to reschedule (" + timesToReschedule.size + "
batches): " +
timesToReschedule.mkString(", "))
- timesToReschedule.foreach(time =>
+ timesToReschedule.foreach { time =>
+ // Allocate the related blocks when recovering from failure, because
some added but not
+ // allocated block is dangled in the queue after recovering, we have
to insert some block
--- End diff --
Grammar fix
"..some blocks that were added but not allocated, are dangling in the queue
after recovering. We have to allocate thoe blocks to the next batch, which is
the batch they were supposed to go to."
---
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]