Second-Level Cache Eviction TimerService Change in Hibernate 6.x
0 reputation · 30 Dec 2024, 11:27 UTC
Second-Level Cache Eviction Policy Transition
The goal is to confirm whether second-level cache eviction timing stays consistent when upgrading from Hibernate 5.x to 6.x. The TimerService implementation changed between these versions, which may alter how often time-based cache regions are evaluated.
The constraint is that existing cache region configurations and query-level cache settings were designed around the 5.x scheduler. It is unclear whether the same configuration produces equivalent eviction behavior in 6.x, or whether stale reads become more likely without explicit changes.
Does Hibernate 6.x preserve the same eviction interval semantics for second-level cache regions as Hibernate 5.x? Must query-level cache entries be manually evicted after schema changes under the new TimerService? Are read-only and read-write entity regions affected differently by this transition?