Skip to content

Commit 879b060

Browse files
author
Andrew Or
committed
Fix compile after rebase
1 parent d622af7 commit 879b060

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class BlockManagerSuite extends SparkFunSuite with Matchers with BeforeAndAfterE
8787
new BlockManagerMasterEndpoint(rpcEnv, true, conf, new LiveListenerBus)), conf, true)
8888

8989
val initialize = PrivateMethod[Unit]('initialize)
90-
org.apache.spark.util.SizeEstimator invokePrivate initialize()
90+
SizeEstimator invokePrivate initialize()
9191
}
9292

9393
override def afterEach(): Unit = {
@@ -420,8 +420,8 @@ class BlockManagerSuite extends SparkFunSuite with Matchers with BeforeAndAfterE
420420
store = makeBlockManager(12000)
421421
val list1 = List(new Array[Byte](2000), new Array[Byte](2000))
422422
val list2 = List(new Array[Byte](500), new Array[Byte](1000), new Array[Byte](1500))
423-
val list1SizeEstimate = org.apache.spark.SizeEstimator.estimate(list1.iterator.toArray)
424-
val list2SizeEstimate = org.apache.spark.SizeEstimator.estimate(list2.iterator.toArray)
423+
val list1SizeEstimate = SizeEstimator.estimate(list1.iterator.toArray)
424+
val list2SizeEstimate = SizeEstimator.estimate(list2.iterator.toArray)
425425
store.putIterator("list1", list1.iterator, StorageLevel.MEMORY_ONLY, tellMaster = true)
426426
store.putIterator("list2memory", list2.iterator, StorageLevel.MEMORY_ONLY, tellMaster = true)
427427
store.putIterator("list2disk", list2.iterator, StorageLevel.DISK_ONLY, tellMaster = true)
@@ -674,7 +674,7 @@ class BlockManagerSuite extends SparkFunSuite with Matchers with BeforeAndAfterE
674674
store.putIterator("list3", list3.iterator, StorageLevel.DISK_ONLY, tellMaster = true)
675675
val listForSizeEstimate = new ArrayBuffer[Any]
676676
listForSizeEstimate ++= list1.iterator
677-
val listSize = org.apache.spark.SizeEstimator.estimate(listForSizeEstimate)
677+
val listSize = SizeEstimator.estimate(listForSizeEstimate)
678678
// At this point LRU should not kick in because list3 is only on disk
679679
assert(store.get("list1").isDefined, "list1 was not in store")
680680
assert(store.get("list1").get.data.size === 2)

0 commit comments

Comments
 (0)