@@ -868,23 +868,23 @@ class BlockManagerSuite extends FunSuite with BeforeAndAfter with PrivateMethodT
868
868
store.put(" list3" , list.iterator, StorageLevel .MEMORY_AND_DISK , tellMaster = true )
869
869
870
870
// getLocations and getBlockStatus should yield the same locations
871
- assert(store.master.getMatchinghBlockIds (_.toString.contains(" list" ), askSlaves = false ).size === 3 )
872
- assert(store.master.getMatchinghBlockIds (_.toString.contains(" list1" ), askSlaves = false ).size === 1 )
871
+ assert(store.master.getMatchingBlockIds (_.toString.contains(" list" ), askSlaves = false ).size === 3 )
872
+ assert(store.master.getMatchingBlockIds (_.toString.contains(" list1" ), askSlaves = false ).size === 1 )
873
873
874
874
// insert some more blocks
875
875
store.put(" newlist1" , list.iterator, StorageLevel .MEMORY_AND_DISK , tellMaster = true )
876
876
store.put(" newlist2" , list.iterator, StorageLevel .MEMORY_AND_DISK , tellMaster = false )
877
877
store.put(" newlist3" , list.iterator, StorageLevel .MEMORY_AND_DISK , tellMaster = false )
878
878
879
879
// getLocations and getBlockStatus should yield the same locations
880
- assert(store.master.getMatchinghBlockIds (_.toString.contains(" newlist" ), askSlaves = false ).size === 1 )
881
- assert(store.master.getMatchinghBlockIds (_.toString.contains(" newlist" ), askSlaves = true ).size === 3 )
880
+ assert(store.master.getMatchingBlockIds (_.toString.contains(" newlist" ), askSlaves = false ).size === 1 )
881
+ assert(store.master.getMatchingBlockIds (_.toString.contains(" newlist" ), askSlaves = true ).size === 3 )
882
882
883
883
val blockIds = Seq (RDDBlockId (1 , 0 ), RDDBlockId (1 , 1 ), RDDBlockId (2 , 0 ))
884
884
blockIds.foreach { blockId =>
885
885
store.put(blockId, list.iterator, StorageLevel .MEMORY_ONLY , tellMaster = true )
886
886
}
887
- val matchedBlockIds = store.master.getMatchinghBlockIds (_ match {
887
+ val matchedBlockIds = store.master.getMatchingBlockIds (_ match {
888
888
case RDDBlockId (1 , _) => true
889
889
case _ => false
890
890
}, askSlaves = true )
0 commit comments