Skip to content

Commit 32fa4d2

Browse files
author
pgandhi
committed
[SPARK-26755] : Remove task index from speculatableTasks HashSet when a speculatable task is dequeued
1 parent 7b23b37 commit 32fa4d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/main/scala/org/apache/spark/scheduler/TaskSetManager.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ private[spark] class TaskSetManager(
274274
if (copiesRunning(index) == 0) {
275275
return Some(index)
276276
} else if (speculative && copiesRunning(index) == 1) {
277+
speculatableTasks -= index
277278
return Some(index)
278279
}
279280
}

0 commit comments

Comments
 (0)