- Multiple JPA persistence units are deployed (some enable caching via hibernate.cache.use_second_level_cache=true and some do not)
- Entities are annotated with @javax.persistence.Cacheable
- Randomly (not reproducible at will), caching is not enabled (queries consistently go to the database)
- DEBUG logging shows that when the issue occurs, there are no log entries like ... [org.hibernate.cache.infinispan.InfinispanRegionFactory] Building entity cache region <deployment>#<persistence-unit>.<package.entity>
|
|