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

    https://github.com/apache/spark/pull/5903#discussion_r29644079
  
    --- Diff: 
core/src/test/scala/org/apache/spark/scheduler/DAGSchedulerSuite.scala ---
    @@ -261,8 +265,9 @@ class DAGSchedulerSuite
           override def taskSucceeded(partition: Int, value: Any) = numResults 
+= 1
           override def jobFailed(exception: Exception) = throw exception
         }
    -    submit(new MyRDD(sc, 0, Nil), Array(), listener = fakeListener)
    +    val jobId = submit(new MyRDD(sc, 0, Nil), Array(), listener = 
fakeListener)
         assert(numResults === 0)
    +    cancel(jobId)
    --- End diff --
    
    Need to cancel it, or `scheduler.stop()` will trigger `jobFailed` and make 
this test fail.


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