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

    https://github.com/apache/spark/pull/8818#discussion_r40179156
  
    --- Diff: 
streaming/src/main/scala/org/apache/spark/streaming/scheduler/JobScheduler.scala
 ---
    @@ -166,20 +166,20 @@ class JobScheduler(val ssc: StreamingContext) extends 
Logging {
       }
     
       private def handleJobCompletion(job: Job) {
    +    val jobSet = jobSets.get(job.time)
    +    jobSet.handleJobCompletion(job)
    +    logInfo("Finished job " + job.id + " from job set of time " + 
jobSet.time)
    +    if (jobSet.hasCompleted) {
    +      jobSets.remove(jobSet.time)
    +      jobGenerator.onBatchCompletion(jobSet.time)
    +      logInfo("Total delay: %.3f s for time %s (execution: %.3f s)".format(
    +        jobSet.totalDelay / 1000.0, jobSet.time.toString,
    +        jobSet.processingDelay / 1000.0
    +      ))
    +      listenerBus.post(StreamingListenerBatchCompleted(jobSet.toBatchInfo))
    +    }
         job.result match {
           case Success(_) =>
    --- End diff --
    
    Is this line need any more? It cane simply be `case _` after the `case 
Failure(e)`


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to