Skip to content

Commit d25a86e

Browse files
committed
Fixed stupid typo.
1 parent cff023c commit d25a86e

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

core/src/main/scala/org/apache/spark/storage/BlockManagerMaster.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ class BlockManagerMaster(var driverActor: ActorRef, conf: SparkConf) extends Log
193193
* updated block statuses. This is useful when the master is not informed of the given block
194194
* by all block managers.
195195
*/
196-
def getMatchinghBlockIds(
196+
def getMatchingBlockIds(
197197
filter: BlockId => Boolean,
198198
askSlaves: Boolean): Seq[BlockId] = {
199199
val msg = GetMatchingBlockIds(filter, askSlaves)

core/src/test/scala/org/apache/spark/ContextCleanerSuite.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,21 +390,21 @@ class CleanerTester(
390390
toBeCleanedBroadcstIds.isEmpty
391391

392392
private def getRDDBlocks(rddId: Int): Seq[BlockId] = {
393-
blockManager.master.getMatchinghBlockIds( _ match {
393+
blockManager.master.getMatchingBlockIds( _ match {
394394
case RDDBlockId(`rddId`, _) => true
395395
case _ => false
396396
}, askSlaves = true)
397397
}
398398

399399
private def getShuffleBlocks(shuffleId: Int): Seq[BlockId] = {
400-
blockManager.master.getMatchinghBlockIds( _ match {
400+
blockManager.master.getMatchingBlockIds( _ match {
401401
case ShuffleBlockId(`shuffleId`, _, _) => true
402402
case _ => false
403403
}, askSlaves = true)
404404
}
405405

406406
private def getBroadcastBlocks(broadcastId: Long): Seq[BlockId] = {
407-
blockManager.master.getMatchinghBlockIds( _ match {
407+
blockManager.master.getMatchingBlockIds( _ match {
408408
case BroadcastBlockId(`broadcastId`, _) => true
409409
case _ => false
410410
}, askSlaves = true)

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -868,23 +868,23 @@ class BlockManagerSuite extends FunSuite with BeforeAndAfter with PrivateMethodT
868868
store.put("list3", list.iterator, StorageLevel.MEMORY_AND_DISK, tellMaster = true)
869869

870870
// 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)
873873

874874
// insert some more blocks
875875
store.put("newlist1", list.iterator, StorageLevel.MEMORY_AND_DISK, tellMaster = true)
876876
store.put("newlist2", list.iterator, StorageLevel.MEMORY_AND_DISK, tellMaster = false)
877877
store.put("newlist3", list.iterator, StorageLevel.MEMORY_AND_DISK, tellMaster = false)
878878

879879
// 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)
882882

883883
val blockIds = Seq(RDDBlockId(1, 0), RDDBlockId(1, 1), RDDBlockId(2, 0))
884884
blockIds.foreach { blockId =>
885885
store.put(blockId, list.iterator, StorageLevel.MEMORY_ONLY, tellMaster = true)
886886
}
887-
val matchedBlockIds = store.master.getMatchinghBlockIds(_ match {
887+
val matchedBlockIds = store.master.getMatchingBlockIds(_ match {
888888
case RDDBlockId(1, _) => true
889889
case _ => false
890890
}, askSlaves = true)

0 commit comments

Comments
 (0)