You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "yuqi1129 (via GitHub)" <gi...@apache.org> on 2026/06/08 09:42:12 UTC

[I] [Improvement] Reuse the catalog cache when resolving catalog properties [gravitino]

yuqi1129 opened a new issue, #11498:
URL: https://github.com/apache/gravitino/issues/11498

   ### What would you like to be improved?
   
   `CatalogManager#getResolvedProperties` creates a new `IsolatedClassLoader` and `BaseCatalog` for every catalog whenever `listCatalogsInfo` is called. The temporary catalog and class loader are closed immediately after resolving the catalog properties.
   
   This repeatedly performs catalog initialization and class-loader resource creation even though `CatalogManager` already maintains a catalog wrapper cache through `loadCatalogAndWrap`.
   
   ### How should we improve?
   
   Resolve catalog properties through `loadCatalogAndWrap` so that the existing catalog wrapper and isolated class loader can be reused:
   
   ```java
   BaseCatalog<?> catalog = loadCatalogAndWrap(entity.nameIdentifier()).catalog();
   return catalog.properties();
   ```
   
   Keep the existing cache invalidation behavior for catalog alter, drop, enable, disable, and remote entity changes.
   
   Add regression coverage verifying that `listCatalogsInfo` loads an uncached catalog into the cache and reuses the same wrapper on subsequent calls.


-- 
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: commits-unsubscribe@gravitino.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] Reuse the catalog cache when resolving catalog properties [gravitino]

Posted by "mchades (via GitHub)" <gi...@apache.org>.
mchades closed issue #11498: [Improvement] Reuse the catalog cache when resolving catalog properties
URL: https://github.com/apache/gravitino/issues/11498


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org