mengw15 commented on code in PR #9555:
URL: https://github.com/apache/texera/pull/9555#discussion_r4658202866


##########
common/config/src/main/resources/storage.conf:
##########
@@ -46,6 +46,17 @@ storage {
                 password = "postgres"
                 password = ${?STORAGE_ICEBERG_CATALOG_POSTGRES_PASSWORD}
             }
+
+            # Catalog clients are cached, one per warehouse (#7290). A 
computing unit touches few
+            # warehouses, but result-service reads every user's results, so it 
may need a larger
+            # max-size. Beyond it, the least recently used client is rebuilt 
on its next use.

Review Comment:
   Right, these only bound the JVM services' cache; the comment and the 
description now say so. The Python side was left unbounded on purpose in #7539: 
each Python worker process is destroyed when its execution ends, so its dict 
holds that execution's one warehouse and nothing accumulates.



##########
common/config/src/main/scala/org/apache/texera/common/config/StorageConfig.scala:
##########
@@ -49,6 +49,11 @@ object StorageConfig {
   val icebergPostgresCatalogPassword: String =
     conf.getString("storage.iceberg.catalog.postgres.password")
 
+  // Iceberg catalog cache specifics
+  val icebergCatalogCacheMaxSize: Int = 
conf.getInt("storage.iceberg.catalog.cache.max-size")
+  val icebergCatalogCacheIdleExpiryMinutes: Int =
+    conf.getInt("storage.iceberg.catalog.cache.idle-expiry-minutes")

Review Comment:
   Thanks for trying those. Took your check as is: both settings go through 
`requireAtLeastOne`, so 0 or a negative value now fails at load time and names 
the variable, with spec cases for 0 and -1. Done in 
df9aec4aac354120acd36e90dfc37051e45c4d3a.



-- 
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]

Reply via email to