Manik Surtani wrote:
Guys,

The API of JBC 3.0 is compatible with 2.x so the actual provider code should not change, but we probably want to test MVCC as a locking scheme as well.

So, we either

1) need a cache-jbosscache3 module (yuk!), copy the providers and existing tests from cache-jbosscache2 and add a few extra tests.

or,

2) assume that cache-jbosscache2 refers to an API and not a version of the cache. So update the cache used in cache-jbosscache2 to 3.0.0, and add the extra MVCC tests as well.

My pref would be for 2, what do you guys think?


Had a *quick* look at the code, and looks like the only direct use of the JBC node locking scheme is a check for OPTIMISTIC in the JBC config, which if true leads to use of classes that store versions in the cache. With MVCC we don't need to store versions, so looks like the existing logic is fine.

If the hibernate guys object to changing the dependency to 3.x, we could look at handling this via a maven profile. If there's no compile time dependency on JBC 3 in the main code or the tests (likely, since MVCC is configured via XML) then we could isolate execution of the MVCC tests in a profile.

Downside to the profile approach is the standard JBC configs that ship would still use PESSIMISTIC/OPTIMISTIC.

Cheers
--
Manik Surtani
Lead, JBoss Cache
[EMAIL PROTECTED]




_______________________________________________
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev


--
Brian Stansberry
Lead, AS Clustering
JBoss, a division of Red Hat
[EMAIL PROTECTED]
_______________________________________________
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev

Reply via email to