Github user sryza commented on a diff in the pull request:
https://github.com/apache/spark/pull/5018#discussion_r26456247
--- Diff:
core/src/main/scala/org/apache/spark/scheduler/cluster/CoarseGrainedSchedulerBackend.scala
---
@@ -371,6 +376,12 @@ class CoarseGrainedSchedulerBackend(scheduler:
TaskSchedulerImpl, val actorSyste
logWarning(s"Executor to kill $id does not exist!")
}
}
+ // Killing executors means effectively that we want less executors
than before, so also update
+ // the target number of executors to avoid having the backend allocate
new ones.
+ val newTotal = numExistingExecutors + numPendingExecutors -
executorsPendingToRemove.size
--- End diff --
I think you need parentheses to make the part on the next line included in
the statement
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]