[jboss-user] [JBossCache] - Optimistic Locking and CacheException problems
do-not-reply at jboss.com
Tue Jul 18 08:54:32 EDT 2006
We are using TreeCache with NodeLockingScheme=OPTIMISTIC, IsolationLevel=REPEATABLE_READ, CacheMode=INVALIDATION_ASYNC
I'm having a hard time understanding how versioning works, and if it has some relation to equals/hashcode/tostring of our model objects (the ones that are mapped with hibernate). I have the following scenario in JMeter: 50 threads running simultaneously, searching for objects, creating new objects and persisting them. Only one instance of JBoss is running.
Around 20% of the time we get the folling exception:
Caused by: org.jboss.cache.CacheException: DataNode [/a/b/c/d/Telephone] version Ver=41 is newer than workspace node Ver=40
As far as I understand, after a "put" there should be an "evict" so this situation shouldn't occur unless 2 threads update the same object simultaneously (however, we are creating different objects all the time)
When I run with 10 threads or so the error does not occur.
Hibernate is 3.2, JBoss is 4.0.4 and JBossCache 1.4
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958776#3958776
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958776
More information about the jboss-user