Skip to content

Commit

Permalink
Fix broadcast tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
rxin committed Jul 30, 2014
1 parent 797c247 commit 111007d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ package org.apache.spark

import java.lang.ref.WeakReference

import org.apache.spark.broadcast.Broadcast

import scala.collection.mutable
import scala.collection.mutable.{HashSet, SynchronizedSet}
import scala.language.existentials
import scala.language.postfixOps
Expand Down Expand Up @@ -159,7 +162,7 @@ class ContextCleanerSuite extends FunSuite with BeforeAndAfter with LocalSparkCo
val broadcastBuffer = (1 to numBroadcasts).map(i => randomBroadcast()).toBuffer
val rddIds = sc.persistentRdds.keys.toSeq
val shuffleIds = 0 until sc.newShuffleId
val broadcastIds = 0L until numBroadcasts
val broadcastIds = broadcastBuffer.map(_.id)

val preGCTester = new CleanerTester(sc, rddIds, shuffleIds, broadcastIds)
runGC()
Expand Down Expand Up @@ -190,7 +193,7 @@ class ContextCleanerSuite extends FunSuite with BeforeAndAfter with LocalSparkCo
val broadcastBuffer = (1 to numBroadcasts).map(i => randomBroadcast()).toBuffer
val rddIds = sc.persistentRdds.keys.toSeq
val shuffleIds = 0 until sc.newShuffleId
val broadcastIds = 0L until numBroadcasts
val broadcastIds = broadcastBuffer.map(_.id)

val preGCTester = new CleanerTester(sc, rddIds, shuffleIds, broadcastIds)
runGC()
Expand Down

0 comments on commit 111007d

Please sign in to comment.