Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
comment fixes
  • Loading branch information
alex-balikov committed Aug 5, 2022
commit 75ab18ee0e382b8117bf65fc9ef05190d4fdf01a
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ private[spark] class TorrentBroadcast[T: ClassTag](obj: T, id: Long, serializedO
// regressions if an internal broadcast is accessed on the driver, we store a soft
// reference to the broadcasted value:
_value = new SoftReference[T](value)
} else { // Store a copy of the broadcast variable in the driver so that tasks run on the driver
} else {
// Store a copy of the broadcast variable in the driver so that tasks run on the driver
// do not create a duplicate copy of the broadcast variable's value.
if (!blockManager.putSingle(broadcastId, value, MEMORY_AND_DISK, tellMaster = false)) {
throw new SparkException(s"Failed to store $broadcastId in BlockManager")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ case class BroadcastExchangeExec(
val beforeBroadcast = System.nanoTime()
longMetric("buildTime") += NANOSECONDS.toMillis(beforeBroadcast - beforeBuild)

// SPARK-39983 - Broadcast the relation without caching the unserialized value.
// SPARK-39983 - Broadcast the relation without caching the unserialized object.
val broadcasted = sparkContext.broadcastInternal(relation, serializedOnly = true)
longMetric("broadcastTime") += NANOSECONDS.toMillis(
System.nanoTime() - beforeBroadcast)
Expand Down