Bug 1427268 - [GSS] (6.4.z) HHH-11516 - Level two cache may not be enabled when using @Cacheable without/instead of @Cache
Summary: [GSS] (6.4.z) HHH-11516 - Level two cache may not be enabled when using @Cach...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Hibernate
Version: 6.3.3
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: CR1
: EAP 6.4.15
Assignee: Gail Badner
QA Contact: Jiří Bílek
URL:
Whiteboard:
Depends On:
Blocks: eap6415-payload 1433526
TreeView+ depends on / blocked
 
Reported: 2017-02-27 18:00 UTC by Stephen Fikes
Modified: 2020-03-11 15:51 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-05-19 08:09:42 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBEAP-9160 0 Critical Verified [GSS] (7.1.z) HHH-11516: Level two cache may not be enabled when using @Cacheable without/instead of @Cache 2017-06-13 08:53:21 UTC
Red Hat Issue Tracker JBEAP-9161 0 Major Verified [GSS] (7.0.z) HHH-11516 - Level two cache may not be enabled when using @Cacheable without/instead of @Cache 2017-06-13 08:53:21 UTC
Red Hat Knowledge Base (Solution) 2947451 0 None None None 2017-05-04 16:28:45 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.