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

    https://github.com/apache/spark/pull/20640#discussion_r179012299
  
    --- Diff: 
resource-managers/mesos/src/main/scala/org/apache/spark/scheduler/cluster/mesos/MesosCoarseGrainedSchedulerBackend.scala
 ---
    @@ -648,14 +645,8 @@ private[spark] class 
MesosCoarseGrainedSchedulerBackend(
               totalGpusAcquired -= gpus
               gpusByTaskId -= taskId
             }
    -        // If it was a failure, mark the slave as failed for blacklisting 
purposes
             if (TaskState.isFailed(state)) {
    -          slave.taskFailures += 1
    -
    -          if (slave.taskFailures >= MAX_SLAVE_FAILURES) {
    -            logInfo(s"Blacklisting Mesos slave $slaveId due to too many 
failures; " +
    -                "is Spark installed on it?")
    -          }
    +          logError(s"Task $taskId failed on Mesos slave $slaveId.")
    --- End diff --
    
    minor: I think it would be nice to say "Mesos task $taskId...".  Maybe its 
obvious for those spending more time with mesos, but I find I'm easily confused 
by the difference between a mesos task and a spark task.


---

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

Reply via email to