clearstorydata/spark — pull request #11 by markhamstra (2014-05-28 21:13:35+00:00)
Title: [SPARK-979] Randomize order of offers.

This commit randomizes the order of resource offers to avoid scheduling
all tasks on the same small set of machines.

This is a much simpler solution to SPARK-979 than #7.

Author: Kay Ousterhout

Closes #27 from kayousterhout/randomize and squashes the following commits:

435d817 [Kay Ousterhout] [SPARK-979] Randomize order of offers.

Conflicts:
core/src/test/scala/org/apache/spark/scheduler/cluster/ClusterSchedulerSuite.scala
core/src/test/scala/org/apache/spark/scheduler/cluster/ClusterTaskSetManagerSuite.scala

Conflicts:
core/src/main/scala/org/apache/spark/scheduler/TaskSchedulerImpl.scala
core/src/test/scala/org/apache/spark/scheduler/ClusterSchedulerSuite.scala
core/src/test/scala/org/apache/spark/scheduler/FakeTask.scala
core/src/test/scala/org/apache/spark/scheduler/TaskSetManagerSuite.scala