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

    https://github.com/apache/spark/pull/15463#discussion_r84139701
  
    --- Diff: 
core/src/test/scala/org/apache/spark/scheduler/TaskSetManagerSuite.scala ---
    @@ -974,6 +974,22 @@ class TaskSetManagerSuite extends SparkFunSuite with 
LocalSparkContext with Logg
         assert(manager.isZombie)
       }
     
    +  test("check uniqueness of TaskSetManager name") {
    +    sc = new SparkContext("local", "test")
    +    sched = new FakeTaskScheduler(sc, ("exec1", "host1"))
    +    val taskSet = FakeTask.createTaskSet(1, 0, 0)
    +    val manager = new TaskSetManager(sched, taskSet, MAX_TASK_FAILURES, 
new ManualClock)
    +    assert(manager.name === "TaskSet_0.0")
    +
    +    val taskSet2 = FakeTask.createTaskSet(1, 0, 1)
    +    val manager2 = new TaskSetManager(sched, taskSet2, MAX_TASK_FAILURES, 
new ManualClock)
    +    assert(manager2.name === "TaskSet_0.1")
    +
    --- End diff --
    
    Similar here -- "// Make sure a task set with the same attempt ID but 
different stage ID also has a unique name"


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