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

    https://github.com/apache/spark/pull/247#discussion_r11235032
  
    --- Diff: 
streaming/src/main/scala/org/apache/spark/streaming/scheduler/JobGenerator.scala
 ---
    @@ -77,30 +82,79 @@ class JobGenerator(jobScheduler: JobScheduler) extends 
Logging {
         }
       }
     
    -  /** Stop generation of jobs */
    -  def stop() = synchronized {
    -    if (eventActor != null) {
    +  /**
    +   * Stop generation of jobs. processAllReceivedData = true makes this 
wait until jobs
    +   * of current ongoing time interval has been generated, processed and 
corresponding
    +   * checkpoints written.
    +   */
    +  def stop(processAllReceivedData: Boolean): Unit = synchronized {
    --- End diff --
    
    I think this could be shortened to `processReceivedData` without loss of 
precision.


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

Reply via email to