Skip to content

Commit bc6c0d9

Browse files
committed
[SPARK-17318][TESTS] Fix ReplSuite replicating blocks of object with class defined in repl
## What changes were proposed in this pull request? There are a lot of failures recently: http://spark-tests.appspot.com/tests/org.apache.spark.repl.ReplSuite/replicating%20blocks%20of%20object%20with%20class%20defined%20in%20repl This PR just changed the persist level to `MEMORY_AND_DISK_2` to avoid blocks being evicted from memory. ## How was this patch tested? Jenkins unit tests. Author: Shixiong Zhu <[email protected]> Closes #14884 from zsxwing/SPARK-17318. (cherry picked from commit 231f973) Signed-off-by: Shixiong Zhu <[email protected]>
1 parent f35b10a commit bc6c0d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

repl/scala-2.11/src/test/scala/org/apache/spark/repl/ReplSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ class ReplSuite extends SparkFunSuite {
401401
"""
402402
|import org.apache.spark.storage.StorageLevel._
403403
|case class Foo(i: Int)
404-
|val ret = sc.parallelize((1 to 100).map(Foo), 10).persist(MEMORY_ONLY_2)
404+
|val ret = sc.parallelize((1 to 100).map(Foo), 10).persist(MEMORY_AND_DISK_2)
405405
|ret.count()
406406
|sc.getExecutorStorageStatus.map(s => s.rddBlocksById(ret.id).size).sum
407407
""".stripMargin)

0 commit comments

Comments
 (0)