perf: L2 cache NONSTRICT + eviction guard (#24810, #24916, #24767) [2.42] - #24986
Merged
Conversation
2.42 still maps CategoryCombo, CategoryOption, DataElement, IndicatorGroup, IndicatorGroupSet, Legend, LegendSet and OptionSet through hbm.xml. On master those entities are JPA-annotated, so #24810 changed the strategy there. Apply the same switch here.
GuardedNonStrictCacheEffectTest boots a real SessionFactory against H2.
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 the test classes from #24767.
#24916 is stacked on #24810. Together they switch reference-metadata L2 regions to NONSTRICT_READ_WRITE and refuse stale late
putFromLoadviaEvictionGuard.2.42 still maps that metadata through hbm.xml (JPA on master), so the strategy switch is applied there. The docker runner from #24767 is omitted: 2.42 has no
run-simulation.sh/ compose profile. Gatling ramp classes andHibernateCacheRegionsTestare included.AI Assisted