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

    https://github.com/apache/spark/pull/20987#discussion_r179806228
  
    --- Diff: core/src/test/scala/org/apache/spark/executor/ExecutorSuite.scala 
---
    @@ -257,19 +281,32 @@ class ExecutorSuite extends SparkFunSuite with 
LocalSparkContext with MockitoSug
       }
     
       private def runTaskAndGetFailReason(taskDescription: TaskDescription): 
TaskFailedReason = {
    -    runTaskGetFailReasonAndExceptionHandler(taskDescription)._1
    +    runTaskGetFailReasonAndExceptionHandler(taskDescription, false)._1
       }
     
       private def runTaskGetFailReasonAndExceptionHandler(
    -      taskDescription: TaskDescription): (TaskFailedReason, 
UncaughtExceptionHandler) = {
    +      taskDescription: TaskDescription,
    +      killTask: Boolean): (TaskFailedReason, UncaughtExceptionHandler) = {
         val mockBackend = mock[ExecutorBackend]
         val mockUncaughtExceptionHandler = mock[UncaughtExceptionHandler]
         var executor: Executor = null
    +    var killingThread: Thread = null
    --- End diff --
    
    Not used? Or did you mean to join this thread or something like that?


---

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

Reply via email to