[jboss-jira] [JBoss JIRA] (AS7-3257) Second Level Cache and Query Cache not working
Zbyněk Roubalík (JIRA)
jira-events at lists.jboss.org
Thu Jan 12 08:28:22 EST 2012
[ https://issues.jboss.org/browse/AS7-3257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zbyněk Roubalík updated AS7-3257:
---------------------------------
Description:
I've created tests for Hibernate Second Level Cache, at this moment they are failing, because Statistics don't give expected results (mostly hit and miss count).
In these tests 2LC, Query cache and Hibernate statistics are enabled, cache region has got correct name (putCount gives some numbers).
I'm not sure if there is a bug in my tests (but they looks good to me) or bug in Hibernate Statistics or in 2LC cache.
Tests are in my github repo,
* Hiberante 2LC Tests branch:
Test case: [Hibernate2LCTestCase.java|https://github.com/zroubalik/jboss-as/blob/hibernate2lc/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/jpa/hibernate/secondlevelcache/Hibernate2LCTestCase.java], which calls SFSB: [SFSB2LC.java|https://github.com/zroubalik/jboss-as/blob/hibernate2lc/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/jpa/hibernate/secondlevelcache/SFSB2LC.java]
* JPA 2LC Tests branch:
Test case: [JPA2LCTestCase.java|https://github.com/zroubalik/jboss-as/blob/jpa2lc/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/jpa/secondlevelcache/JPA2LCTestCase.java], which calls SFSB: [SFSB2LC.java|https://github.com/zroubalik/jboss-as/blob/jpa2lc/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/jpa/secondlevelcache/SFSB2LC.java]
was:
I've created tests for Hibernate Second Level Cache, at this moment they are failing, because Statistics don't give expected results (mostly hit and miss count).
In these tests 2LC, Query cache and Hibernate statistics are enabled, cache region has got correct name (putCount gives some numbers).
I'm not sure if there is a bug in my tests (but they looks good to me) or bug in Hibernate Statistics or in 2LC cache.
Tests are in my github repo in 2lcTests branch:
Test case: [SecondLevelCacheTestCase.java|https://github.com/zroubalik/jboss-as/blob/0aebdd10c62c195cd92d57bc9c324e014b8aef22/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/jpa/secondlevelcache/SecondLevelCacheTestCase.java], which calls SFSB: [SFSB2LCSessionFactory.java|https://github.com/zroubalik/jboss-as/blob/0aebdd10c62c195cd92d57bc9c324e014b8aef22/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/jpa/secondlevelcache/SFSB2LCSessionFactory.java]
> Second Level Cache and Query Cache not working
> -----------------------------------------------
>
> Key: AS7-3257
> URL: https://issues.jboss.org/browse/AS7-3257
> Project: Application Server 7
> Issue Type: Bug
> Components: JPA / Hibernate
> Affects Versions: 7.1.0.CR1
> Reporter: Zbyněk Roubalík
> Assignee: Zbyněk Roubalík
> Fix For: 7.1.0.Final
>
>
> I've created tests for Hibernate Second Level Cache, at this moment they are failing, because Statistics don't give expected results (mostly hit and miss count).
> In these tests 2LC, Query cache and Hibernate statistics are enabled, cache region has got correct name (putCount gives some numbers).
> I'm not sure if there is a bug in my tests (but they looks good to me) or bug in Hibernate Statistics or in 2LC cache.
> Tests are in my github repo,
> * Hiberante 2LC Tests branch:
> Test case: [Hibernate2LCTestCase.java|https://github.com/zroubalik/jboss-as/blob/hibernate2lc/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/jpa/hibernate/secondlevelcache/Hibernate2LCTestCase.java], which calls SFSB: [SFSB2LC.java|https://github.com/zroubalik/jboss-as/blob/hibernate2lc/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/jpa/hibernate/secondlevelcache/SFSB2LC.java]
> * JPA 2LC Tests branch:
> Test case: [JPA2LCTestCase.java|https://github.com/zroubalik/jboss-as/blob/jpa2lc/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/jpa/secondlevelcache/JPA2LCTestCase.java], which calls SFSB: [SFSB2LC.java|https://github.com/zroubalik/jboss-as/blob/jpa2lc/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/jpa/secondlevelcache/SFSB2LC.java]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list