perf: L2 cache NONSTRICT + eviction guard (#24810, #24916, #24767) [2.43] - #24985
Open
netroms wants to merge 8 commits into
Open
perf: L2 cache NONSTRICT + eviction guard (#24810, #24916, #24767) [2.43]#24985netroms wants to merge 8 commits into
netroms wants to merge 8 commits into
Conversation
DataElement is still HBM-mapped on 2.43 (JPA on master), so #24810's annotation change does not apply. Switch the mapping to nonstrict-read-write and add H2 as a test dependency so GuardedNonStrictCacheEffectTest can boot a SessionFactory.
HibernateEhcacheConfigFileTest and HibernateCacheRegionsTest use hibernate-jcache and ehcache APIs. dependency:analyze failed the unit-test and sonarqube jobs without these test-scoped declarations.
NOSONAR on the volatile generations pair and JCache region inheritance (same design as master). Tests: sequential H2 db names, documented JPA ctor, method references for removeAll.
|
jbee
approved these changes
Aug 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Backport of #24810, #24916, and #24767.
#24916 is stacked on #24810. Together they switch reference-metadata L2 regions to NONSTRICT_READ_WRITE and refuse stale late
putFromLoadviaEvictionGuard. #24767 is the concurrency ramp harness.DataElement is still HBM-mapped on 2.43, so the strategy switch is in
DataElement.hbm.xml. Also ports theclasspath:ehcache.xmlresolver from #24767 so the guard SessionFactory tests (and a plain JVM with the default config) can boot.AI Assisted