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

    https://github.com/apache/spark/pull/15249#discussion_r81423312
  
    --- Diff: 
core/src/test/scala/org/apache/spark/scheduler/TaskSetManagerSuite.scala ---
    @@ -809,32 +816,65 @@ class TaskSetManagerSuite extends SparkFunSuite with 
LocalSparkContext with Logg
       test("Kill other task attempts when one attempt belonging to the same 
task succeeds") {
         sc = new SparkContext("local", "test")
         sched = new FakeTaskScheduler(sc, ("exec1", "host1"), ("exec2", 
"host2"))
    -    val taskSet = FakeTask.createTaskSet(4)
    +    val taskSet = FakeTask.createTaskSet(5)
         // Set the speculation multiplier to be 0 so speculative tasks are 
launched immediately
         sc.conf.set("spark.speculation.multiplier", "0.0")
    +    sc.conf.set("spark.speculation.quantile", "0.6")
         val clock = new ManualClock()
         val manager = new TaskSetManager(sched, taskSet, MAX_TASK_FAILURES, 
clock)
         val accumUpdatesByTask: Array[Seq[AccumulatorV2[_, _]]] = 
taskSet.tasks.map { task =>
           task.metrics.internalAccums
         }
         // Offer resources for 4 tasks to start
    +    val tasks = new ArrayBuffer[TaskDescription]()
         for ((k, v) <- List(
             "exec1" -> "host1",
             "exec1" -> "host1",
    +        "exec1" -> "host1",
    --- End diff --
    
    with this change the comment above should say "5 tasks" right?


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