Skip to content

Commit

Permalink
[SPARK-5095] remove flaky test
Browse files Browse the repository at this point in the history
Overrode the start() method, which was previously starting a thread causing a race condition. I believe this should fix the flaky test.

Author: Michael Gummelt <[email protected]>

Closes #11164 from mgummelt/fix_mesos_tests.
  • Loading branch information
Michael Gummelt authored and Andrew Or committed Feb 12, 2016
1 parent 38bc601 commit 62b1c07
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,11 @@ class CoarseMesosSchedulerBackendSuite extends SparkFunSuite
override protected def createDriverEndpointRef(
properties: ArrayBuffer[(String, String)]): RpcEndpointRef = endpoint

// override to avoid race condition with the driver thread on `mesosDriver`
override def startScheduler(newDriver: SchedulerDriver): Unit = {
mesosDriver = newDriver
}

markRegistered()
}
backend.start()
Expand Down

0 comments on commit 62b1c07

Please sign in to comment.