youngyjd opened a new pull request, #8871: URL: https://github.com/apache/gravitino/pull/8871
### What changes were proposed in this pull request? It turns out bumping to 10 seconds even 20 seconds still doesn't work - https://github.com/apache/gravitino/pull/8870. It's because Caffeine's W-TinyLFU eviction algorithm is **NON-DETERMINISTIC**. It doesn't guarantee which specific entries will be evicted, even after an hour. It makes probabilistic decisions based on: - Access frequency (how often accessed) - Recency (when last accessed) - Random sampling for efficiency - Weight of entries Although weight plays a significant role, it's not the sole indicator on which cache to evict. ### Why are the changes needed? Fix the flaky test of testPolicyAndTagCacheWeigher Fix: [#8861](https://github.com/apache/gravitino/issues/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]
