Skip to content

Commit cd6dbdf

Browse files
committed
Print call site information for broadcasts
1 parent 4c589ca commit cd6dbdf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/main/scala/org/apache/spark/SparkContext.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,8 @@ class SparkContext(config: SparkConf) extends Logging {
815815
*/
816816
def broadcast[T: ClassTag](value: T): Broadcast[T] = {
817817
val bc = env.broadcastManager.newBroadcast[T](value, isLocal)
818+
val callSite = getCallSite
819+
logInfo("Created broadcast " + bc.id + " from " + callSite.shortForm)
818820
cleaner.foreach(_.registerBroadcastForCleanup(bc))
819821
bc
820822
}

0 commit comments

Comments
 (0)