Skip to content

perf: L2 cache NONSTRICT + eviction guard (#24810, #24916, #24767) [2.43] - #24985

Open
netroms wants to merge 8 commits into
2.43from
backport/l2-eviction-guard-2.43
Open

perf: L2 cache NONSTRICT + eviction guard (#24810, #24916, #24767) [2.43]#24985
netroms wants to merge 8 commits into
2.43from
backport/l2-eviction-guard-2.43

Conversation

@netroms

@netroms netroms commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

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 putFromLoad via EvictionGuard. #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 the classpath:ehcache.xml resolver from #24767 so the guard SessionFactory tests (and a plain JVM with the default config) can boot.

AI Assisted

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.
Hibernate's ClassLoaderService only understands classpath://, so the
documented classpath:ehcache.xml default never resolved. Required by the
eviction-guard SessionFactory tests and by L2 cache boot in a plain JVM.
Cherry-picked from 3070342 (#24767).
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.
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants