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

    https://github.com/apache/spark/pull/14079#discussion_r70008186
  
    --- Diff: 
core/src/test/scala/org/apache/spark/scheduler/TaskSchedulerImplSuite.scala ---
    @@ -281,6 +300,174 @@ class TaskSchedulerImplSuite extends SparkFunSuite 
with LocalSparkContext with B
         assert(!failedTaskSet)
       }
     
    +  test("scheduled tasks obey task and stage blacklists") {
    +    val blacklist = mock[BlacklistTracker]
    +    taskScheduler = setupScheduler(blacklist)
    +    val stage0 = FakeTask.createTaskSet(numTasks = 2, stageId = 0, 
stageAttemptId = 0)
    +    val stage1 = FakeTask.createTaskSet(numTasks = 2, stageId = 1, 
stageAttemptId = 0)
    +    val stage2 = FakeTask.createTaskSet(numTasks = 2, stageId = 2, 
stageAttemptId = 0)
    +    taskScheduler.submitTasks(stage0)
    +    taskScheduler.submitTasks(stage1)
    +    taskScheduler.submitTasks(stage2)
    +
    +    val offers = Seq(
    +      new WorkerOffer("executor0", "host0", 1),
    +      new WorkerOffer("executor1", "host1", 1),
    +      new WorkerOffer("executor2", "host1", 1),
    +      new WorkerOffer("executor3", "host2", 10)
    +    )
    +
    +    // setup our mock blacklist:
    +    // stage 0 is blacklisted on node "host1"
    +    // stage 1 is blacklist on executor "executor3"
    --- End diff --
    
    nit: blacklisted


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