-
Notifications
You must be signed in to change notification settings - Fork 416
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
[#6566] improvement(core): Add the cache mechanism for metalake and use cache to load in-use
information.
#6569
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
b6e7c82
Add the cache mechanism for matalake and use cache to load `in-use` i…
yuqi1129 0e1c41f
fix ut
yuqi1129 302d241
Preload all metalakes to cache.
yuqi1129 bade110
Merge branch 'main' of github.com:datastrato/graviton into issue_6566
yuqi1129 1d181a8
fix ci error.
yuqi1129 9e11e3e
fix
yuqi1129 aa8aa80
fix
yuqi1129 1b73712
fix ci tests error
yuqi1129 7a36a92
Fix test error.
yuqi1129 8262b95
Fix test error.
yuqi1129 d037f02
Resolve test error.
yuqi1129 3c98a5d
fix
yuqi1129 70897de
Merge branch 'main' into issue_6566
yuqi1129 b1d7ab4
fix
yuqi1129 a78f9ec
Merge branch 'main' into issue_6566
yuqi1129 84f66f3
Resolve comments
yuqi1129 084820d
Merge remote-tracking branch 'me/issue_6566' into issue_6566
yuqi1129 52e65ca
Revert some changes.
yuqi1129 0a78a3a
fix
yuqi1129 15cfc06
fix
yuqi1129 b1b7d4a
Add closable interface for MetalakeManager.
yuqi1129 49aa6c1
fix
yuqi1129 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why do we make it static? I assume there will be only one
CatalogManager
, so there should be only onecatalogCache
, right?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.
The method check
catalogInUse
andmetalakeInUse
are all static. If we want to use cache for them, we need to change it tostatic
Yes, there will be only one cache and all catalogs shares the same instance, It's not a big problem I think.
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.
should named
CATALOG_CACHE
?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.
should it be
final
?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.
Okay, let me change it.
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.
If we use
static final
flag, then Gravitino server configuraoin likegravitino.catalog.cache.evictionIntervalMs
should be remove as we can't used it in static code block, Is that acceptable to you?