Skip to content

Commit 8ed8fb6

Browse files
committed
Mon Aug 22 13:54:26 PDT 2016
1 parent b480ec6 commit 8ed8fb6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/main/scala/org/apache/spark/storage/BlockManager.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -977,8 +977,7 @@ private[spark] class BlockManager(
977977
// [SPARK-16550] Erase the typed classTag when using default serialization, since
978978
// NettyBlockRpcServer crashes when deserializing repl-defined classes.
979979
// TODO(ekl) remove this once the classloader issue on the remote end is fixed.
980-
val remoteClassTag = classTag
981-
if (!serializerManager.canUseKryo(classTag)) {
980+
val remoteClassTag = if (!serializerManager.canUseKryo(classTag)) {
982981
scala.reflect.classTag[Any]
983982
} else {
984983
classTag

core/src/test/scala/org/apache/spark/DistributedSuite.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ class DistributedSuite extends SparkFunSuite with Matchers with LocalSparkContex
151151

152152
private def testCaching(storageLevel: StorageLevel): Unit = {
153153
sc = new SparkContext(clusterUrl, "test")
154+
sc.jobProgressListener.waitUntilExecutorsUp(2, 30000)
154155
val data = sc.parallelize(1 to 1000, 10)
155156
val cachedData = data.persist(storageLevel)
156157
assert(cachedData.count === 1000)

0 commit comments

Comments
 (0)