Skip to content
Snippets Groups Projects
Commit d1b7f416 authored by Tathagata Das's avatar Tathagata Das
Browse files

Fixed bug in BoundedMemoryCache.

parent 435d129b
No related branches found
No related tags found
No related merge requests found
......@@ -91,7 +91,11 @@ class BoundedMemoryCache(maxBytes: Long) extends Cache with Logging {
protected def reportEntryDropped(datasetId: Any, partition: Int, entry: Entry) {
logInfo("Dropping key (%s, %d) of size %d to make space".format(datasetId, partition, entry.size))
// TODO: remove BoundedMemoryCache
SparkEnv.get.cacheTracker.dropEntry(datasetId.asInstanceOf[(Int, Int)]._2, partition)
datasetId match {
case rddDatasetId: (Int, Int) =>
SparkEnv.get.cacheTracker.dropEntry(rddDatasetId._2, partition)
case _ =>
}
}
}
......
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