anishshri-db commented on code in PR #56234:
URL: https://github.com/apache/spark/pull/56234#discussion_r3335577421
##########
sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/state/RocksDBSuite.scala:
##########
@@ -3276,6 +3276,36 @@ class RocksDBSuite extends AlsoTestWithRocksDBFeatures
with SharedSparkSession
}
}
+ testWithColumnFamilies(
+ "SPARK-57183: LRUCache is closed on RocksDB.close() in unbounded memory
mode",
+ TestWithBothChangelogCheckpointingEnabledAndDisabled) { colFamiliesEnabled
=>
+ // In unbounded mode each RocksDB instance owns its LRUCache. Verify that
close() releases
+ // the native handle so that the cache object is no longer valid after
close.
+ withTempDir { dir =>
+ try {
+ val sqlConf = new SQLConf
+ sqlConf.setConfString(
+ RocksDBConf.ROCKSDB_SQL_CONF_NAME_PREFIX + "." +
+ RocksDBConf.BOUNDED_MEMORY_USAGE_CONF_KEY, "false")
Review Comment:
Can we add a test to verify that the bounded case is not affected by this
change ?
--
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]