Github user mwws commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11101#discussion_r53335941
  
    --- 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 --
    
    If task execution time is longer than batchDuration, it usually means that 
the streaming application is not healhy and user need to adjust parameters to 
avoid such scenario.
    
    And the "thread.sleep" here is to make sure a new job could be generated, 
it's nothing to do with job execution.


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