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 @@ -203,8 +203,8 @@ private[spark] class ExecutorAllocationManager(
* The number of executors we would have if the cluster manager were to fulfill all our existing
* requests.
*/
private def targetNumExecutors(): Int =
numExecutorsPending + executorIds.size - executorsPendingToRemove.size
private def targetNumExecutors(): Int = math.max(numExecutorsPending + executorIds.size -
executorsPendingToRemove.size, minNumExecutors)

/**
* The maximum number of executors we would need under the current load to satisfy all running
Expand Down