oneby-wang commented on PR #25949: URL: https://github.com/apache/pulsar/pull/25949#issuecomment-4656653174
From Caffeine's design, expiration visibility and physical removal are not the same thing. An expired entry can behave as absent (getIfPresent() returns null) while still remaining in the internal data structures until routine maintenance removes it. As a result, the internal map size may temporarily include expired entries that are no longer accessible through the cache API. This is also discussed by the Caffeine maintainer here: https://github.com/ben-manes/caffeine/discussions/524 -- 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]
