diff options
author | Shixiong Zhu <shixiong@databricks.com> | 2016-08-30 20:04:52 -0700 |
---|---|---|
committer | Shixiong Zhu <shixiong@databricks.com> | 2016-08-30 20:04:52 -0700 |
commit | 231f973295129dca976f2e4a8222a63318d4aafe (patch) | |
tree | b330b2fcbdfa9ef4b70c98024fa9ab34c7ce0f59 /repl/scala-2.11/src | |
parent | f7beae6da02e6b70a34c714e93136becbde7679b (diff) | |
download | spark-231f973295129dca976f2e4a8222a63318d4aafe.tar.gz spark-231f973295129dca976f2e4a8222a63318d4aafe.tar.bz2 spark-231f973295129dca976f2e4a8222a63318d4aafe.zip |
[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 <shixiong@databricks.com>
Closes #14884 from zsxwing/SPARK-17318.
Diffstat (limited to 'repl/scala-2.11/src')
-rw-r--r-- | repl/scala-2.11/src/test/scala/org/apache/spark/repl/ReplSuite.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/repl/scala-2.11/src/test/scala/org/apache/spark/repl/ReplSuite.scala b/repl/scala-2.11/src/test/scala/org/apache/spark/repl/ReplSuite.scala index 06b09f3158..f1284b1df3 100644 --- a/repl/scala-2.11/src/test/scala/org/apache/spark/repl/ReplSuite.scala +++ b/repl/scala-2.11/src/test/scala/org/apache/spark/repl/ReplSuite.scala @@ -401,7 +401,7 @@ class ReplSuite extends SparkFunSuite { """ |import org.apache.spark.storage.StorageLevel._ |case class Foo(i: Int) - |val ret = sc.parallelize((1 to 100).map(Foo), 10).persist(MEMORY_ONLY_2) + |val ret = sc.parallelize((1 to 100).map(Foo), 10).persist(MEMORY_AND_DISK_2) |ret.count() |sc.getExecutorStorageStatus.map(s => s.rddBlocksById(ret.id).size).sum """.stripMargin) |