[jboss-user] [JBoss Cache: Core Edition] - Re: on child insert parent, child collection updated in DB b

bstansberry@jboss.com do-not-reply at jboss.com
Tue Mar 17 20:51:00 EDT 2009


See http://www.jboss.org/index.html?module=bb&op=viewtopic&t=152497 for the cause of the problem with the UpdateTimestampsCache in your test.

Disabling query caching works around the problem, which can be done in your test by adding: 


  |     @Override
  |     protected boolean getUseQueryCache() {
  |         return false;
  |     }
  | 

The specific problem can also be addressed by using a separate cache for the timestamps (see docs). But the general problem discussed on the forum thread mentioned above of the possibility of lock conflicts due to lock striping remains. However, getting the timestamps cache out of the entity/collection cache reduces the problem to (a still significant) one of bad luck where concurrent txs contend for the same locks rather than an inevitable situation where changes to certain Fqns will always conflict with the lock stripe used by the timestamps cache.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4218844#4218844

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4218844



More information about the jboss-user mailing list