Skip to content

Commit fbe31eb

Browse files
committed
Remove return and add a space.
1 parent 9ea08e8 commit fbe31eb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/src/main/scala/org/apache/spark/scheduler/TaskSetManager.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -800,17 +800,16 @@ private[spark] class TaskSetManager(
800800
maybeFinishTaskSet()
801801

802802
// kill running task if stage failed
803-
if(reason.isInstanceOf[FetchFailed]) {
803+
if (reason.isInstanceOf[FetchFailed]) {
804804
killTasks(runningTasksSet, taskInfos)
805805
}
806806
}
807807

808-
def killTasks(tasks: HashSet[Long], taskInfo: HashMap[Long, TaskInfo]): Boolean = {
808+
def killTasks(tasks: HashSet[Long], taskInfo: HashMap[Long, TaskInfo]): Unit = {
809809
tasks.foreach { task =>
810810
val executorId = taskInfo(task).executorId
811811
sched.sc.schedulerBackend.killTask(task, executorId, true)
812812
}
813-
true
814813
}
815814

816815
def abort(message: String, exception: Option[Throwable] = None): Unit = sched.synchronized {

0 commit comments

Comments
 (0)