epugh commented on PR #5029:
URL: https://github.com/apache/solr/pull/5029#issuecomment-7332413460

   FYI, related: the Renovate PR #5274 bumped Caffeine 3.2.4 → 3.3.1, and that 
makes `TestThinCache.testSimple` and `TestCaffeineCache.testSimple` fail 
**deterministically** (every seed), not intermittently.
   
   Caffeine 3.3.0 "improved the adaptive climber for small caches", which 
changes which entry a size-100 cache evicts. The cache still stays bounded at 
100, but key `1` is no longer the victim, so `assertNull(lfuCache.get(1))` (the 
phase-1 assertion called out under "Limits" here) fails. In 
`TestCaffeineCache`, `policy().eviction().hottest(25)` also returns a different 
warm set, so the autowarm hit/miss counts change too.
   
   We're holding Caffeine at 3.2.4 in #5274 for now. Whoever takes the 3.3 
upgrade will need to make these tests independent of the eviction victim (e.g. 
assert eviction counts / bounded size rather than specific keys), which seems 
like a natural extension of this PR.
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to