Github user viirya commented on a diff in the pull request:
https://github.com/apache/spark/pull/21322#discussion_r188128177
--- Diff:
core/src/main/scala/org/apache/spark/storage/memory/MemoryStore.scala ---
@@ -384,15 +385,36 @@ private[spark] class MemoryStore(
}
}
+ private def maybeReleaseResources(entry: MemoryEntry[_]): Unit = {
+ entry match {
+ case SerializedMemoryEntry(buffer, _, _) => buffer.dispose()
+ case DeserializedMemoryEntry(objs: Array[Any], _, _) =>
maybeCloseValues(objs)
--- End diff --
As I know, broadcasted variables can be serialized on disk too
(`BlockManager.doPutIterator`). In the case, seems `AutoCloseable` broadcasted
variables won't hit this release logic.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]