Skip to content

Commit 92c62a5

Browse files
committed
Revert the MEMORY_AND_DISK_SER changes.
1 parent 03a5221 commit 92c62a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/scala/org/apache/spark/broadcast/TorrentBroadcast.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,13 @@ private[spark] class TorrentBroadcast[T: ClassTag](
8989
val metaId = BroadcastBlockId(id, "meta")
9090
val metaInfo = TorrentInfo(null, totalBlocks, totalBytes)
9191
SparkEnv.get.blockManager.putSingle(
92-
metaId, metaInfo, StorageLevel.MEMORY_AND_DISK_SER, tellMaster = true)
92+
metaId, metaInfo, StorageLevel.MEMORY_AND_DISK, tellMaster = true)
9393

9494
// Store individual pieces
9595
for (i <- 0 until totalBlocks) {
9696
val pieceId = BroadcastBlockId(id, "piece" + i)
9797
SparkEnv.get.blockManager.putSingle(
98-
pieceId, tInfo.arrayOfBlocks(i), StorageLevel.MEMORY_AND_DISK_SER, tellMaster = true)
98+
pieceId, tInfo.arrayOfBlocks(i), StorageLevel.MEMORY_AND_DISK, tellMaster = true)
9999
}
100100
}
101101

0 commit comments

Comments
 (0)