Skip to content

Commit a664606

Browse files
zsxwingrxin
authored andcommitted
SPARK-1583: Fix a bug that using java.util.HashMap by mistake
JIRA: https://issues.apache.org/jira/browse/SPARK-1583 Does anyone know why using `java.util.HashMap` rather than `mutable.HashMap`? Some methods of `java.util.HashMap` are not generics and compiler can not help us find similar problems. Author: zsxwing <zsxwing@gmail.com> Closes #500 from zsxwing/SPARK-1583 and squashes the following commits: 7bfd74d [zsxwing] SPARK-1583: Fix a bug that using java.util.HashMap by mistake
1 parent cd4ed29 commit a664606

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ class BlockManagerMasterActor(val isLocal: Boolean, conf: SparkConf, listenerBus
203203
val locations = blockLocations.get(blockId)
204204
locations -= blockManagerId
205205
if (locations.size == 0) {
206-
blockLocations.remove(locations)
206+
blockLocations.remove(blockId)
207207
}
208208
}
209209
listenerBus.post(SparkListenerBlockManagerRemoved(blockManagerId))

0 commit comments

Comments
 (0)