Ngone51 commented on a change in pull request #31742:
URL: https://github.com/apache/spark/pull/31742#discussion_r592304336
##########
File path: core/src/main/scala/org/apache/spark/ContextCleaner.scala
##########
@@ -207,6 +207,29 @@ private[spark] class ContextCleaner(
}
}
+ /**
+ * Cleanup resources on shutdown.
+ *
+ * This is important for resources that don't live in memory, like
checkpoint data,
+ * that outlive the Spark process. The normal cleanup thread in
[[keepCleaning]]
+ * doesn't cleanup things on shutdown because it's interrupted by the
shutdown
+ * process itself.
+ */
+ private def cleanupOnShutdown(): Unit = {
+ referenceBuffer.toArray(Array[CleanupTaskWeakReference]())
+ .foreach { ref =>
+ ref.task match {
+ case CleanCheckpoint(rddId) =>
Review comment:
Shuffle files are handled by `DiskBlockManager`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]