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

    https://github.com/apache/spark/pull/17619#discussion_r168509141
  
    --- Diff: 
resource-managers/mesos/src/main/scala/org/apache/spark/scheduler/cluster/mesos/MesosCoarseGrainedSchedulerBackend.scala
 ---
    @@ -484,7 +481,6 @@ private[spark] class MesosCoarseGrainedSchedulerBackend(
           cpus + totalCoresAcquired <= maxCores &&
           mem <= offerMem &&
           numExecutors() < executorLimit &&
    -      slaves.get(slaveId).map(_.taskFailures).getOrElse(0) < 
MAX_SLAVE_FAILURES &&
    --- End diff --
    
    rather than just deleting this, we should replace it with a check to 
`scheduler.nodeBlacklist()`, like the YarnScheduler is doing here: 
https://github.com/apache/spark/blob/44e20c42254bc6591b594f54cd94ced5fcfadae3/resource-managers/yarn/src/main/scala/org/apache/spark/scheduler/cluster/YarnSchedulerBackend.scala#L128


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to