youngyjd opened a new pull request, #8862:
URL: https://github.com/apache/gravitino/pull/8862

   ### What changes were proposed in this pull request?
   
   added cache.cleanUp() calls to force synchronous eviction:
   1. After adding all filesets - Call cleanUp() once to trigger initial 
eviction
   2. During Awaitility polling - Call cleanUp() on each poll iteration to 
ensure eviction happens consistently
   
   ### Why are the changes needed?
   
   The test testPolicyAndTagCacheWeigher() was timing out because Caffeine 
cache eviction happens asynchronously. When I add entries that exceed the 
maximum weight, Caffeine doesn't immediately evict old entries—it does so 
lazily in the background or when triggered.
   
   see failure: 
https://github.com/apache/gravitino/actions/runs/18668130387/job/53223578211?pr=8859
   
   Fix: #(issue) https://github.com/apache/gravitino/issues/8861
   
   ### Does this PR introduce _any_ user-facing change?
   
   No
   
   ### How was this patch tested?
   
   Updated unit tests


-- 
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]

Reply via email to