Skip to content

Conversation

@sitalkedia
Copy link

…nction

@kayousterhout
Copy link
Contributor

Jenkins this is ok to test

@kayousterhout
Copy link
Contributor

Jenkins, test this please

list += index
}
list += index
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It strikes me that addTo is now only making a negative contribution toward understanding the code -- mostly because the "...if it's not already there" comment is now wrong. I don't see why the handful of uses of addTo shouldn't just be replaced with, e.g.:

pendingTasksForExecutor.getOrElseUpdate(e.executorId, new ArrayBuffer) += index

@srowen
Copy link
Member

srowen commented Feb 14, 2016

Jenkins, test this please

@SparkQA
Copy link

SparkQA commented Feb 14, 2016

Test build #51266 has finished for PR 11175 at commit 26b4370.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@srowen
Copy link
Member

srowen commented Feb 15, 2016

@kayousterhout I'll let you push the button on this one when you're sure but it looks OK to me.

@sitalkedia
Copy link
Author

@kayousterhout did you get some time to look into this?

asfgit pushed a commit that referenced this pull request Feb 17, 2016
This commit removes an unnecessary duplicate check in addPendingTask that meant
that scheduling a task set took time proportional to (# tasks)^2.

Author: Sital Kedia <[email protected]>

Closes #11175 from sitalkedia/fix_stuck_driver.

(cherry picked from commit 1e1e31e)
Signed-off-by: Kay Ousterhout <[email protected]>
@asfgit asfgit closed this in 1e1e31e Feb 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants