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

    https://github.com/apache/spark/pull/159#discussion_r10640377
  
    --- Diff: 
core/src/main/scala/org/apache/spark/scheduler/TaskSetManager.scala ---
    @@ -228,12 +239,18 @@ private[spark] class TaskSetManager(
        * This method also cleans up any tasks in the list that have already
        * been launched, since we want that to happen lazily.
        */
    -  private def findTaskFromList(list: ArrayBuffer[Int]): Option[Int] = {
    -    while (!list.isEmpty) {
    -      val index = list.last
    -      list.trimEnd(1)
    -      if (copiesRunning(index) == 0 && !successful(index)) {
    -        return Some(index)
    +  private def findTaskFromList(execId: String, list: ArrayBuffer[Int]): 
Option[Int] = {
    +    var indexOffset = list.size
    +
    +    while (indexOffset > 0) {
    +      indexOffset -= 1
    +      val index = list(indexOffset)
    +      if (! executorIsBlacklisted(execId, index)) {
    --- End diff --
    
    extra space after ! (should be !executorIsBlacklisted)


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

Reply via email to