-
Notifications
You must be signed in to change notification settings - Fork 4.8k
HIVE-29016: Disable caching on the Iceberg REST Catalog #5878
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
deniskuzZ
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
We should revisit the caching catalog implementation, as it seems to be broken. If there are no further efforts to address the issues, we should return to the original PR and proceed with revert
cc @henrib
@deniskuzZ the unit test that creates a table through http does not fail though. ( TestHMSCatalog.testTableAPI() ). Any other unit test that reproduces that issue would be much appreciated. |
@okumin, how did you create the table? have you used |
|
@henrib, transaction API doesn't work at all: that is what @okumin mentioned reproduce: MetastoreConf.setLongVar(conf, MetastoreConf.ConfVars.ICEBERG_CATALOG_CACHE_EXPIRY, -1L); but i am not sure if |
|
With this modification in HMSCachingCatalog: This test succeeds: |
@okumin, can we add the proposed change to this PR? |
|
@henrib, why do we need to call |
|
|
Hi @okumin, could you please incorporate the above minor change here as well? Thanks! |
|
I added the recommended change. I did not add a test case because we're replacing the existing ones with the more comprehensive test suite in https://issues.apache.org/jira/browse/HIVE-29019. |
|
May be we can try and fix the actual cache instead ? Have a look at 5882 |
|
|
Merged. @deniskuzZ @henrib Thanks for your review comments! |



What changes were proposed in this pull request?
Remove caching on the Iceberg REST API server. It's mainly because the current code didn't work with caching correctly, as stated in HIVE-29016.
This is an alternative to #5871
Why are the changes needed?
Disable caching.
Does this PR introduce any user-facing change?
No. This feature is not yet shipped.
How was this patch tested?
Unit test