github-actions[bot] opened a new pull request, #8875: URL: https://github.com/apache/gravitino/pull/8875
### What changes were proposed in this pull request? Fix EntityCacheWeigher priorities and update cache eviction test This commit corrects the entity weight configuration in EntityCacheWeigher and updates the corresponding test to validate the new behavior. The previous weight configuration was inverted: - Schema: weight=500 (incorrectly high, causing unwanted evictions) - Tag/Policy: weight=100 (incorrectly low, preventing desired evictions) This violated the Caffeine cache principle where higher weights lead to higher eviction priority. ### Why are the changes needed? Correct EntityCacheWeigher and fix the flaky test of testPolicyAndTagCacheWeigher Fix: #8861 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Unit test updated -- 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]
