Github user tedyu commented on a diff in the pull request:

    https://github.com/apache/spark/pull/5704#discussion_r29382639
  
    --- Diff: 
core/src/main/scala/org/apache/spark/ExecutorAllocationManager.scala ---
    @@ -281,21 +285,30 @@ private[spark] class ExecutorAllocationManager(
        */
       private def addExecutors(maxNumExecutorsNeeded: Int): Int = {
         // Do not request more executors if it would put our target over the 
upper bound
    -    val currentTarget = targetNumExecutors
    -    if (currentTarget >= maxNumExecutors) {
    -      logDebug(s"Not adding executors because there are already 
${executorIds.size} " +
    -        s"registered and $numExecutorsPending pending executor(s) (limit 
$maxNumExecutors)")
    +    if (numExecutorsTarget >= maxNumExecutors) {
    +      val numExecutorsPending = numExecutorsTarget - executorIds.size
    +      logDebug(s"Not adding executors because there are already 
${executorIds.size} registered" +
    +        s"and ${numExecutorsPending} pending executor(s) (limit 
$maxNumExecutors)")
    --- End diff --
    
    nit: insert a space before 'and'


---
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

Reply via email to