Skip to content

Commit 7aec2a9

Browse files
committed
[SPARK-2714] DAGScheduler logs jobid when runJob finishes
1 parent fb42f0f commit 7aec2a9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -428,12 +428,12 @@ class DAGScheduler(
428428
val waiter = submitJob(rdd, func, partitions, callSite, allowLocal, resultHandler, properties)
429429
waiter.awaitResult() match {
430430
case JobSucceeded => {
431-
logInfo(
432-
"Job " + waiter.jobId + " finished: " + callSite.shortForm +
433-
", took " + (System.nanoTime - start) / 1e9 + " s")
431+
logInfo("Job %d finished: %s, took %ds".format
432+
(waiter.jobId, callSite.shortForm, (System.nanoTime - start) / 1e9))
434433
}
435434
case JobFailed(exception: Exception) =>
436-
logInfo("Job " + waiter.jobId + " failed to run " + callSite.shortForm)
435+
logInfo("Job %d failed: %s, took %ds".format
436+
(waiter.jobId, callSite.shortForm, (System.nanoTime - start) / 1e9))
437437
throw exception
438438
}
439439
}

0 commit comments

Comments
 (0)