pgandhi999 commented on a change in pull request #23677:
[SPARK-26755][SCHEDULER] : Optimize Spark Scheduler to dequeue speculative
tasks…
URL: https://github.com/apache/spark/pull/23677#discussion_r301181498
##########
File path: core/src/main/scala/org/apache/spark/scheduler/TaskSetManager.scala
##########
@@ -398,23 +382,25 @@ private[spark] class TaskSetManager(
{
// Check for process-local tasks; note that tasks can be process-local
// on multiple nodes when we replicate cached blocks, as in Spark
Streaming
- for (index <- dequeueSpeculativeTaskFromList(
- execId, host, pendingSpeculatableTasksForExecutor.getOrElse(execId,
HashSet()))) {
+ for (index <- dequeueTaskFromList(
+ execId, host, pendingSpeculatableTasks.forExecutor.getOrElse(execId,
ArrayBuffer()),
+ speculative = true)) {
Review comment:
Done. Thank you for your valuable help in coming up with the code.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]