From 1e15feb5a314e7180328b9208054966e040eb2ad Mon Sep 17 00:00:00 2001 From: Reynold Xin <reynoldx@gmail.com> Date: Fri, 6 Sep 2013 22:44:05 +0800 Subject: [PATCH] Hot fix to resolve the compilation error caused by SPARK-821. --- core/src/test/scala/org/apache/spark/CacheManagerSuite.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/test/scala/org/apache/spark/CacheManagerSuite.scala b/core/src/test/scala/org/apache/spark/CacheManagerSuite.scala index 214f8244d5..3a7171c488 100644 --- a/core/src/test/scala/org/apache/spark/CacheManagerSuite.scala +++ b/core/src/test/scala/org/apache/spark/CacheManagerSuite.scala @@ -39,7 +39,7 @@ class CacheManagerSuite extends FunSuite with BeforeAndAfter with EasyMockSugar blockManager = mock[BlockManager] cacheManager = new CacheManager(blockManager) split = new Partition { override def index: Int = 0 } - rdd = new RDD(sc, Nil) { + rdd = new RDD[Int](sc, Nil) { override def getPartitions: Array[Partition] = Array(split) override val getDependencies = List[Dependency[_]]() override def compute(split: Partition, context: TaskContext) = Array(1, 2, 3, 4).iterator -- GitLab