Github user mateiz commented on a diff in the pull request:
https://github.com/apache/spark/pull/1313#discussion_r15852006
--- Diff:
core/src/test/scala/org/apache/spark/scheduler/TaskSetManagerSuite.scala ---
@@ -192,56 +211,59 @@ class TaskSetManagerSuite extends FunSuite with
LocalSparkContext with Logging {
val manager = new TaskSetManager(sched, taskSet, MAX_TASK_FAILURES,
clock)
// An executor that is not NODE_LOCAL should be rejected.
- assert(manager.resourceOffer("execC", "host2", ANY) === None)
+ assert(manager.resourceOffer("execC", "host2", NODE_LOCAL) === None)
// Because there are no alive PROCESS_LOCAL executors, the base
locality level should be
// NODE_LOCAL. So, we should schedule the task on this offered
NODE_LOCAL executor before
// any of the locality wait timers expire.
- assert(manager.resourceOffer("execA", "host1", ANY).get.index === 0)
+ assert(manager.resourceOffer("execA", "host1", NODE_LOCAL).get.index
=== 0)
}
test("basic delay scheduling") {
sc = new SparkContext("local", "test")
- val sched = new FakeTaskScheduler(sc, ("exec1", "host1"), ("exec2",
"host2"))
+ val sched = new FakeTaskScheduler(sc, ("exec1", "host1"), ("exec3",
"host2"))
--- End diff --
Doesn't seem like there is any reason to rename exec2 to exec3
---
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]