Skip to content

Commit

Permalink
debugging printlns
Browse files Browse the repository at this point in the history
  • Loading branch information
squito committed Jun 11, 2015
1 parent b6bc248 commit ecb4e7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,7 @@ class DAGScheduler(

if (runningStages.contains(shuffleStage) && shuffleStage.pendingTasks.isEmpty) {
markStageAsFinished(shuffleStage)
println(s"marking $shuffleStage as finished")
logInfo("looking for newly runnable stages")
logInfo("running: " + runningStages)
logInfo("waiting: " + waitingStages)
Expand All @@ -1072,6 +1073,7 @@ class DAGScheduler(
.map(_._2).mkString(", "))
submitStage(shuffleStage)
} else {
println(s"looking for newly runnable stage")
val newlyRunnable = new ArrayBuffer[Stage]
for (shuffleStage <- waitingStages) {
logInfo("Missing parents for " + shuffleStage + ": " +
Expand All @@ -1081,6 +1083,7 @@ class DAGScheduler(
{
newlyRunnable += shuffleStage
}
println(s"newly runnable stages = $newlyRunnable")
waitingStages --= newlyRunnable
runningStages ++= newlyRunnable
for {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ class DAGSchedulerSuite
// normally done by TaskSetManager
taskSet.tasks.foreach(_.epoch = mapOutputTracker.getEpoch)
taskSets += taskSet
println(s"submitting taskSet $taskSet. taskSets = $taskSets")
}
override def cancelTasks(stageId: Int, interruptThread: Boolean) {
cancelledStages += stageId
Expand Down

0 comments on commit ecb4e7d

Please sign in to comment.