This content has been marked as final.
Show 3 replies
-
1. Re: Locks not working in networked TreeCaches?
manik Nov 4, 2005 6:04 AM (in response to pr3ston)Behaviour on a single cache is as expected. When you use this with 2 caches, locks on the remote cache are only acquired during the prepare phase of committing the transaction.
-
2. Re: Locks not working in networked TreeCaches?
pr3ston Nov 4, 2005 1:05 PM (in response to pr3ston)Hi Manik,
So, from what you said it seems that if we start a transaction and modify 2 nodes, those nodes get locked across the cluster only during the commit phase of the transaction. Is this correct? Is there any way to lock a node on modification?
Is there any other way to lock a node across the cluster and then release it? Do you have any recommendations on an open source transaction manager that we can use to achieve this?
Thank you for your help.
Regards,
Preston -
3. Re: Locks not working in networked TreeCaches?
manik Nov 4, 2005 2:06 PM (in response to pr3ston)"pr3ston" wrote:
Is there any way to lock a node on modification?
The short answer is no. It is upon replication that other caches in the cluster are considered in the tx."pr3ston" wrote:
Is there any other way to lock a node across the cluster and then release it? Do you have any recommendations on an open source transaction manager that we can use to achieve this?
Unfortunately no. Distributed locks are created during the prepare phase and are released after commit or rollback, just like any distributed transaction manager would handle it. This is pretty much how distributed transactions work.
With JBossCache 1.3 we will be releasing optimistic node locking (see [http://wiki.jboss.org/wiki/Wiki.jsp?page=OptimisticNodeLocking]) which may be able to help though. This is also available in 1.2.4 as alpha quality..."pr3ston" wrote:
Thank you for your help.
No probs!