Skip to content
Snippets Groups Projects
Commit a66903cd authored by Justin Loew's avatar Justin Loew
Browse files

Revert "Handle Option.None correctly when removing an RDD"

This reverts commit 1710966b.
parent 1710966b
No related branches found
No related tags found
No related merge requests found
...@@ -396,13 +396,8 @@ private[spark] class MemoryStore( ...@@ -396,13 +396,8 @@ private[spark] class MemoryStore(
def remove(blockId: BlockId): Boolean = memoryManager.synchronized { def remove(blockId: BlockId): Boolean = memoryManager.synchronized {
val entry = entries.synchronized { val entry = entries.synchronized {
entries.get(blockId) match { val origEntry = entries.get(blockId)
case Some(origEntry) => blockIdAndSizeSet -= new OurBlockIdAndSizeType(blockId, origEntry.size)
blockIdAndSizeSet -= new OurBlockIdAndSizeType(blockId, origEntry.size)
case None =>
// Do nothing
logInfo("origEntry was None after all")
}
entries.remove(blockId) entries.remove(blockId)
} }
if (entry != null) { if (entry != null) {
......
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