Skip to content
Snippets Groups Projects
Commit 62a077cd authored by Reynold Xin's avatar Reynold Xin
Browse files

Merge branch 'unpersist-test' of github.com:shivaram/spark into blockmanager

parents 3bf2c868 2274ad07
No related branches found
No related tags found
No related merge requests found
...@@ -261,9 +261,9 @@ class DistributedSuite extends FunSuite with ShouldMatchers with BeforeAndAfter ...@@ -261,9 +261,9 @@ class DistributedSuite extends FunSuite with ShouldMatchers with BeforeAndAfter
val data = sc.parallelize(Seq(true, false, false, false), 4) val data = sc.parallelize(Seq(true, false, false, false), 4)
data.persist(StorageLevel.MEMORY_ONLY_2) data.persist(StorageLevel.MEMORY_ONLY_2)
data.count data.count
assert(sc.persistentRdds.isEmpty == false) assert(sc.persistentRdds.isEmpty === false)
data.unpersist() data.unpersist()
assert(sc.persistentRdds.isEmpty == true) assert(sc.persistentRdds.isEmpty === true)
failAfter(Span(3000, Millis)) { failAfter(Span(3000, Millis)) {
try { try {
...@@ -271,12 +271,12 @@ class DistributedSuite extends FunSuite with ShouldMatchers with BeforeAndAfter ...@@ -271,12 +271,12 @@ class DistributedSuite extends FunSuite with ShouldMatchers with BeforeAndAfter
Thread.sleep(200) Thread.sleep(200)
} }
} catch { } catch {
case e: Exception => case _ => { Thread.sleep(10) }
// Do nothing. We might see exceptions because block manager // Do nothing. We might see exceptions because block manager
// is racing this thread to remove entries from the driver. // is racing this thread to remove entries from the driver.
} }
} }
assert(sc.getRDDStorageInfo.isEmpty == true) assert(sc.getRDDStorageInfo.isEmpty === true)
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment