Repository: spark
Updated Branches:
  refs/heads/master 342612b65 -> b96008d55


[SPARK-794][Core] Remove sleep() in ClusterScheduler.stop

Removed `sleep()` from the `stop()` method of the `TaskSchedulerImpl` class 
which, from the JIRA ticket, is believed to be a legacy artifact slowing down 
testing originally introduced in the `ClusterScheduler` class.

Author: Brennon York <[email protected]>

Closes #3851 from brennonyork/SPARK-794 and squashes the following commits:

04c3e64 [Brennon York] Removed sleep() from the stop() method


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/b96008d5
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/b96008d5
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/b96008d5

Branch: refs/heads/master
Commit: b96008d5529bac5fd57b76554fd01760139cffff
Parents: 342612b
Author: Brennon York <[email protected]>
Authored: Sun Jan 4 12:40:39 2015 -0800
Committer: Josh Rosen <[email protected]>
Committed: Sun Jan 4 12:40:39 2015 -0800

----------------------------------------------------------------------
 .../main/scala/org/apache/spark/scheduler/TaskSchedulerImpl.scala | 3 ---
 1 file changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/b96008d5/core/src/main/scala/org/apache/spark/scheduler/TaskSchedulerImpl.scala
----------------------------------------------------------------------
diff --git 
a/core/src/main/scala/org/apache/spark/scheduler/TaskSchedulerImpl.scala 
b/core/src/main/scala/org/apache/spark/scheduler/TaskSchedulerImpl.scala
index cd3c015..a41f3ee 100644
--- a/core/src/main/scala/org/apache/spark/scheduler/TaskSchedulerImpl.scala
+++ b/core/src/main/scala/org/apache/spark/scheduler/TaskSchedulerImpl.scala
@@ -394,9 +394,6 @@ private[spark] class TaskSchedulerImpl(
       taskResultGetter.stop()
     }
     starvationTimer.cancel()
-
-    // sleeping for an arbitrary 1 seconds to ensure that messages are sent 
out.
-    Thread.sleep(1000L)
   }
 
   override def defaultParallelism() = backend.defaultParallelism()


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to