[JBossCache] - Optimistic Locking and CacheException problems
by mimix
Hi,
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
19 years, 9 months
[JBossCache] - [TreeCacheMarshaller140] Unknown Magic Number 49
by bpapez
Since switching to JBossCache 1.4.0.GA I get many of the following log-entries:
12:08:59,360 ERROR [TreeCacheMarshaller140] Unknown Magic Number 49
12:08:59,379 INFO [VersionAwareMarshaller] Caught exception unmarshalling stream with specific versioned marshaller class org.jboss.cache.marshall.TreeCacheMarshaller140. Attempting to try again with legacy marshaller class org.jboss.cache.marshall.LegacyTreeCacheMarshaller
12:08:59,390 ERROR [RpcDispatcher] exception=java.io.StreamCorruptedException: invalid stream header
12:09:13,947 ERROR [TreeCacheMarshaller140] Unknown Magic Number 49
12:09:13,962 INFO [VersionAwareMarshaller] Caught exception unmarshalling stream with specific versioned marshaller class org.jboss.cache.marshall.TreeCacheMarshaller140. Attempting to try again with legacy marshaller class org.jboss.cache.marshall.LegacyTreeCacheMarshaller
12:09:13,970 ERROR [RpcDispatcher] exception=java.io.StreamCorruptedException: invalid stream header
What does that mean or what can we do about it?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958774#3958774
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958774
19 years, 9 months