anishshri-db commented on code in PR #41089:
URL: https://github.com/apache/spark/pull/41089#discussion_r1187648615
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/RocksDBFileManager.scala:
##########
@@ -371,7 +371,8 @@ class RocksDBFileManager(
// Get the immutable files used in previous versions, as some of those
uploaded files can be
// reused for this version
logInfo(s"Saving RocksDB files to DFS for $version")
- val prevFilesToSizes = versionToRocksDBFiles.values.asScala.flatten.map {
f =>
+ val prevFilesToSizes = versionToRocksDBFiles.asScala.filterKeys(_ !=
version)
Review Comment:
Done. Yea, I thought about this too. But listing happens only here and we
prob don't expect for this to happen too often. So went with the point fix for
now.
--
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]