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

    https://github.com/apache/spark/pull/22288#discussion_r216874530
  
    --- Diff: 
core/src/main/scala/org/apache/spark/scheduler/TaskSchedulerImpl.scala ---
    @@ -414,9 +425,48 @@ private[spark] class TaskSchedulerImpl(
                 launchedAnyTask |= launchedTaskAtCurrentMaxLocality
               } while (launchedTaskAtCurrentMaxLocality)
             }
    +
             if (!launchedAnyTask) {
    -          taskSet.abortIfCompletelyBlacklisted(hostToExecutors)
    -        }
    +          taskSet.getCompletelyBlacklistedTaskIfAny(hostToExecutors) match 
{
    +            case taskIndex: Some[Int] => // Returns the taskIndex which 
was unschedulable
    +
    +              // If the taskSet is unschedulable we kill an existing 
blacklisted executor/s and
    +              // kick off an abortTimer which after waiting will abort the 
taskSet if we were
    +              // unable to schedule any task from the taskSet.
    +              // Note: We keep a track of schedulability on a per taskSet 
basis rather than on a
    +              // per task basis.
    +              val executor = 
hostToExecutors.valuesIterator.next().iterator.next()
    --- End diff --
    
    I'm wondering is it worth to kill someone executor which has some tasks 
running on it ? After all, a task blaklisted on all executors(currently 
allocated) can not be guaranteed to run on a new allocated executor.


---

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

Reply via email to