[hibernate-issues] [Hibernate-JIRA] Issue Comment Edited: (HHH-7004) Query cache is getting weird after an update into a single transaction
Strong Liu (JIRA)
noreply at atlassian.com
Mon Jan 30 03:22:10 EST 2012
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-7004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45298#comment-45298 ]
Strong Liu edited comment on HHH-7004 at 1/30/12 2:22 AM:
----------------------------------------------------------
{code}
TX1: TX2:
getBylabel getBylabel
update getBylabel
getBylabel getBylabel
getBylabel getBylabel
rollback getBylabel
{code}
----------------------------------------------
query cache is a process scope cache, not transactional scope
was (Author: stliu):
TX1: TX2:
getBylabel getBylabel
update getBylabel
getBylabel getBylabel
getBylabel getBylabel
rollback getBylabel
----------------------------------------------
query cache is a process scope cache, not transactional scope
> Query cache is getting weird after an update into a single transaction
> ----------------------------------------------------------------------
>
> Key: HHH-7004
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-7004
> Project: Hibernate ORM
> Issue Type: Bug
> Components: core
> Affects Versions: 3.6.9, 4.0.1
> Reporter: Romain Gonord
> Assignee: Strong Liu
> Attachments: testHibernateEhCache.tgz
>
>
> Hi all,
> I'm using hibernate 4.0.1 and I'm facing a strange behavior. I can reproduce it with hibernate 3.6.9.
> I have an entity (integer id, string label) with query cache and level2 cache activated.
> If I load this object by its label, i get one select in the log and every following getbylabel doesn't produce any select query.
> As soon as I modify my object (that leads to an update query), each time I call the getbylabel, i get a select.
> By activating hibernate log, i can see that there is something strange with cache timestamp, which lead me to the following bug report : https://hibernate.onjira.com/browse/HHH-5210.
> Any idea ?
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list