chaoqin-li1123 commented on code in PR #41099:
URL: https://github.com/apache/spark/pull/41099#discussion_r1199515576
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/RocksDB.scala:
##########
@@ -56,6 +56,15 @@ class RocksDB(
hadoopConf: Configuration = new Configuration,
loggingId: String = "") extends Logging {
+ case class RocksDBCheckpoint(checkpointDir: File, version: Long, numKeys:
Long) {
+ def close(): Unit = {
+ silentDeleteRecursively(checkpointDir, s"Free up local checkpoint of
snapshot $version")
+ }
+ }
+
+ @volatile private var latestCheckpoint: Option[RocksDBCheckpoint] = None
Review Comment:
Renamed to snapshot.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]