Github user vanzin commented on the pull request: https://github.com/apache/spark/pull/8668#issuecomment-140601612 Ok, I think I see what the problem is. But your fix is not correct. The problem is here: doRequestTotalExecutors( numExistingExecutors + numPendingExecutors - executorsPendingToRemove.size) By subtracting `executorsPendingToRemove.size` when that list contains an executor that is pending replacement, that replacement will be lost. The fix is to keep track of how many replacement executors the code is waiting for, and account for that in the above equation, not to remove that code altogether. > So there is no need to change the number of executors when killing executors. That's not true, in YARN, at least. See SPARK-6325. So you can't make your current change unless you also change how the YARN backend does accounting for the running executors.
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org