[jboss-dev-forums] [Design of JBossCache] - Re: Custom data versions

manik.surtani@jboss.com do-not-reply at jboss.com
Fri Jul 11 13:07:05 EDT 2008


Yup that pretty much sums it up.  Concurrent updates will be dealt with exactly as they are dealt with right now.

Regarding releasing, it is easier than you think: DataVersions were a strictly Optimistic-Locking feature.  With MVCC, we never made any promises that DataVersions would apply.  Just as we ignore custom data versions with Pessimistic Locking, I expect to do the same with MVCC.

The problem with leaving versioning logic in MVCC is that it is pretty central.  (Use VersionedNode instead of UnversionedNode, different write-skew check, different ways of handing custom data versions which may be unnecessary).  I'd rather we leave this out (if the logic makes sense) and move on from a fragile and broken API.  :-)

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

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



More information about the jboss-dev-forums mailing list