zecookiez commented on code in PR #50123: URL: https://github.com/apache/spark/pull/50123#discussion_r1978201231
########## sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/RocksDB.scala: ########## @@ -1467,6 +1475,11 @@ class RocksDB( log"time taken: ${MDC(LogKeys.TIME_UNITS, uploadTime)} ms. " + log"Current lineage: ${MDC(LogKeys.LINEAGE, lineageManager)}") lastUploadedSnapshotVersion.set(snapshot.version) + // Report to coordinator that the snapshot has been uploaded when + // changelog checkpointing is enabled, since that is when stores can lag behind. + if(enableChangelogCheckpointing) { + providerListener.foreach(_.reportSnapshotUploaded(snapshot.version)) Review Comment: The `shouldForceSnapshot` check is done outside of the uploadCommit code, so it is also covered -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org