Skip to content

Commit

Permalink
[SPARK-4750] Dynamic allocation - synchronize kills
Browse files Browse the repository at this point in the history
Simple omission on my part.

Author: Andrew Or <[email protected]>

Closes apache#3612 from andrewor14/dynamic-allocation-synchronization and squashes the following commits:

1f03b60 [Andrew Or] Synchronize kills
  • Loading branch information
Andrew Or authored and JoshRosen committed Dec 9, 2014
1 parent d6a972b commit 65f929d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ class CoarseGrainedSchedulerBackend(scheduler: TaskSchedulerImpl, val actorSyste
* Request that the cluster manager kill the specified executors.
* Return whether the kill request is acknowledged.
*/
final def killExecutors(executorIds: Seq[String]): Boolean = {
final def killExecutors(executorIds: Seq[String]): Boolean = synchronized {
logInfo(s"Requesting to kill executor(s) ${executorIds.mkString(", ")}")
val filteredExecutorIds = new ArrayBuffer[String]
executorIds.foreach { id =>
Expand Down

0 comments on commit 65f929d

Please sign in to comment.