WweiL commented on code in PR #48355:
URL: https://github.com/apache/spark/pull/48355#discussion_r1866997855
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/RocksDB.scala:
##########
@@ -359,6 +470,56 @@ class RocksDB(
this
}
+ private def init(
+ version: Long,
+ latestSnapshotVersion: Long,
+ metadata: RocksDBCheckpointMetadata): Unit = {
+ loadedVersion = latestSnapshotVersion
+
+ // reset the last snapshot version to the latest available snapshot version
+ lastSnapshotVersion = latestSnapshotVersion
+
+ // Initialize maxVersion upon successful load from DFS
+ fileManager.setMaxSeenVersion(version)
Review Comment:
sure
--
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]