Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,12 @@ private[spark] class ExecutorAllocationManager(
// This is needed in case the stage is aborted for any reason
if (stageIdToNumTasks.isEmpty && stageIdToNumSpeculativeTasks.isEmpty) {
allocationManager.onSchedulerQueueEmpty()
if (executorIdToTaskIds.nonEmpty) {
log.warn(s"There are no running tasks," +
s" but ${executorIdToTaskIds.size} executors are not idle")
executorIdToTaskIds.keySet.foreach(allocationManager.onExecutorIdle)
executorIdToTaskIds.clear()
}
}
}
}
Expand Down