-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-27065][CORE] avoid more than one active task set managers for a stage #23927
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
424a3c8
53c6ed8
f94809d
0ca733d
07d7de9
58f646e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -201,30 +201,10 @@ class TaskSchedulerImplSuite extends SparkFunSuite with LocalSparkContext with B | |
| // Even if one of the task sets has not-serializable tasks, the other task set should | ||
| // still be processed without error | ||
| taskScheduler.submitTasks(FakeTask.createTaskSet(1)) | ||
| taskScheduler.submitTasks(taskSet) | ||
| taskDescriptions = taskScheduler.resourceOffers(multiCoreWorkerOffers).flatten | ||
| assert(taskDescriptions.map(_.executorId) === Seq("executor0")) | ||
| } | ||
|
|
||
| test("refuse to schedule concurrent attempts for the same stage (SPARK-8103)") { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this part of code is reverted in this PR, so remove the test as well
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is fine, but do we also want to add a test case to ensure the new behavior will not break ? |
||
| val taskScheduler = setupScheduler() | ||
| val attempt1 = FakeTask.createTaskSet(1, 0) | ||
| val attempt2 = FakeTask.createTaskSet(1, 1) | ||
| taskScheduler.submitTasks(attempt1) | ||
| intercept[IllegalStateException] { taskScheduler.submitTasks(attempt2) } | ||
|
|
||
| // OK to submit multiple if previous attempts are all zombie | ||
| taskScheduler.taskSetManagerForAttempt(attempt1.stageId, attempt1.stageAttemptId) | ||
| .get.isZombie = true | ||
| taskScheduler.submitTasks(attempt2) | ||
| val attempt3 = FakeTask.createTaskSet(1, 2) | ||
| intercept[IllegalStateException] { taskScheduler.submitTasks(attempt3) } | ||
| taskScheduler.taskSetManagerForAttempt(attempt2.stageId, attempt2.stageAttemptId) | ||
| .get.isZombie = true | ||
| taskScheduler.submitTasks(attempt3) | ||
| assert(!failedTaskSet) | ||
| } | ||
|
|
||
| test("don't schedule more tasks after a taskset is zombie") { | ||
| val taskScheduler = setupScheduler() | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can't have 2 active task set managers at the same time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we shall just give it another stageId ?