You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "mchades (via GitHub)" <gi...@apache.org> on 2025/08/19 05:55:01 UTC
[I] [Improvement] cannot disable catalog cache [gravitino]
mchades opened a new issue, #8160:
URL: https://github.com/apache/gravitino/issues/8160
### What would you like to be improved?
Currently, the catalog cache is specific to a single Gravitino instance. When using a multi-instance deployment in a cluster, if we want to maintain strong data consistency, we need to disable the catalog cache. However, there is only one configuration item that can be set: `gravitino.catalog.cache.evictionIntervalMs`. Setting this value to `0` disables the cache, causing it to be evicted immediately. As a result, the classLoader of the catalog is closed, leading to a `ClassNotFoundException` during subsequent operations on that catalog.
relative codes:
cache conf:
https://github.com/apache/gravitino/blob/aee3290eb05dcf74a8bd8cd0c3b2a4d6759f2ddf/conf/gravitino.conf.template#L58-L60
cache eviction close the catalog:
https://github.com/apache/gravitino/blob/fd221a33833b4f50c74ff699f89107692023ef2d/core/src/main/java/org/apache/gravitino/catalog/CatalogManager.java#L300-L316
catalogWrapper close the classLoader:
https://github.com/apache/gravitino/blob/fd221a33833b4f50c74ff699f89107692023ef2d/core/src/main/java/org/apache/gravitino/catalog/CatalogManager.java#L237-L252
### How should we improve?
Adding configuration `gravitino.catalog.cache.enable` allows the cache to be manually disabled
--
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] cannot disable catalog cache [gravitino]
Posted by "mchades (via GitHub)" <gi...@apache.org>.
mchades commented on issue #8160:
URL: https://github.com/apache/gravitino/issues/8160#issuecomment-3199306117
@jerryshao cc
--
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
Re: [I] [Improvement] cannot disable catalog cache [gravitino]
Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on issue #8160:
URL: https://github.com/apache/gravitino/issues/8160#issuecomment-3306394813
@yuqi1129 It is better if you can take this into consideration when you solve the classloader problem and refactor the catalog manager part.
--
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