Skip to content

Commit 2ed927f

Browse files
committed
Fixed error in unit test.
1 parent de4ff73 commit 2ed927f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

core/src/test/scala/org/apache/spark/storage/BlockManagerReplicationSuite.scala

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class BlockManagerReplicationSuite extends FunSuite with Matchers with BeforeAnd
9090
master = null
9191
}
9292

93-
93+
9494
test("get peers with addition and removal of block managers") {
9595
val numStores = 4
9696
val stores = (1 to numStores - 1).map { i => makeBlockManager(1000, s"store$i") }
@@ -150,15 +150,15 @@ class BlockManagerReplicationSuite extends FunSuite with Matchers with BeforeAnd
150150
test("block replication - mixed between 1x to 5x") {
151151
// Generate storage levels with varying replication
152152
val storageLevels = Seq(
153-
//MEMORY_ONLY,
153+
MEMORY_ONLY,
154+
MEMORY_ONLY_SER_2,
155+
StorageLevel(true, false, false, false, 3),
156+
StorageLevel(true, true, false, true, 4),
157+
StorageLevel(true, true, false, false, 5),
158+
StorageLevel(true, true, false, true, 4),
159+
StorageLevel(true, false, false, false, 3),
154160
MEMORY_ONLY_SER_2,
155-
StorageLevel(true, false, false, false, 3)
156-
//StorageLevel(true, true, false, true, 4),
157-
//StorageLevel(true, true, false, false, 5),
158-
//StorageLevel(true, true, false, true, 4),
159-
//StorageLevel(true, false, false, false, 3),
160-
//MEMORY_ONLY_SER_2,
161-
//MEMORY_ONLY
161+
MEMORY_ONLY
162162
)
163163
testReplication(5, storageLevels)
164164
}

0 commit comments

Comments
 (0)