Bug 1427268

Summary: [GSS] (6.4.z) HHH-11516 - Level two cache may not be enabled when using @Cacheable without/instead of @Cache
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Stephen Fikes <sfikes>
Component: HibernateAssignee: Gail Badner <gbadner>
Status: CLOSED CURRENTRELEASE QA Contact: Jiří Bílek <jbilek>
Severity: high Docs Contact:
Priority: high    
Version: 6.3.3CC: bmaxwell, gbadner, jbilek, msimka, msochure, rnetuka, smarlow
Target Milestone: CR1   
Target Release: EAP 6.4.15   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Release Note
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-19 08:09:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1419353, 1433526    

Description Stephen Fikes 2017-02-27 18:00:48 UTC
Description of problem:
Randomly (not reproducible at will), caching is not enabled (queries that should resolve in cache 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 ...

The same issue has never been reproduced when @org.hibernate.annotations.Cache is used for entities and cache regions are consistently (based on DEBUG trace) seen to be created for associations (which can only be made cacheable via @Cache)


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
* 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

Actual results:


Expected results:


Additional info:

Comment 2 Jiří Bílek 2017-04-20 12:00:43 UTC
Verified with EAP 6.4.15.CP.CR2

Comment 3 Petr Penicka 2017-05-19 08:09:42 UTC
Released on May 18 as part of EAP 6.4.15.