Skip to content

Commit ecb4e7d

Browse files
committed
debugging printlns
1 parent b6bc248 commit ecb4e7d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,6 +1046,7 @@ class DAGScheduler(
10461046

10471047
if (runningStages.contains(shuffleStage) && shuffleStage.pendingTasks.isEmpty) {
10481048
markStageAsFinished(shuffleStage)
1049+
println(s"marking $shuffleStage as finished")
10491050
logInfo("looking for newly runnable stages")
10501051
logInfo("running: " + runningStages)
10511052
logInfo("waiting: " + waitingStages)
@@ -1072,6 +1073,7 @@ class DAGScheduler(
10721073
.map(_._2).mkString(", "))
10731074
submitStage(shuffleStage)
10741075
} else {
1076+
println(s"looking for newly runnable stage")
10751077
val newlyRunnable = new ArrayBuffer[Stage]
10761078
for (shuffleStage <- waitingStages) {
10771079
logInfo("Missing parents for " + shuffleStage + ": " +
@@ -1081,6 +1083,7 @@ class DAGScheduler(
10811083
{
10821084
newlyRunnable += shuffleStage
10831085
}
1086+
println(s"newly runnable stages = $newlyRunnable")
10841087
waitingStages --= newlyRunnable
10851088
runningStages ++= newlyRunnable
10861089
for {

core/src/test/scala/org/apache/spark/scheduler/DAGSchedulerSuite.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ class DAGSchedulerSuite
8888
// normally done by TaskSetManager
8989
taskSet.tasks.foreach(_.epoch = mapOutputTracker.getEpoch)
9090
taskSets += taskSet
91+
println(s"submitting taskSet $taskSet. taskSets = $taskSets")
9192
}
9293
override def cancelTasks(stageId: Int, interruptThread: Boolean) {
9394
cancelledStages += stageId

0 commit comments

Comments
 (0)