Skip to content
Snippets Groups Projects
Commit e782187b authored by root's avatar root Committed by Matei Zaharia
Browse files

Don't throw an error in the block manager when a block is cached on the master due to

a locally computed operation

Conflicts:

	core/src/main/scala/spark/storage/BlockManagerMaster.scala
parent f63a40fd
No related branches found
No related tags found
No related merge requests found
...@@ -243,6 +243,12 @@ private[spark] class BlockManagerMasterActor(val isLocal: Boolean) extends Actor ...@@ -243,6 +243,12 @@ private[spark] class BlockManagerMasterActor(val isLocal: Boolean) extends Actor
val startTimeMs = System.currentTimeMillis() val startTimeMs = System.currentTimeMillis()
val tmp = " " + blockManagerId + " " + blockId + " " val tmp = " " + blockManagerId + " " + blockId + " "
if (!blockManagerInfo.contains(blockManagerId)) {
// Can happen if this is from a locally cached partition on the master
sender ! true
return
}
if (blockId == null) { if (blockId == null) {
blockManagerInfo(blockManagerId).updateLastSeenMs() blockManagerInfo(blockManagerId).updateLastSeenMs()
logDebug("Got in heartBeat 1" + tmp + " used " + Utils.getUsedTimeMs(startTimeMs)) logDebug("Got in heartBeat 1" + tmp + " used " + Utils.getUsedTimeMs(startTimeMs))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment