Re: [infinispan-dev] Some flags are incompatible with implicit transactions

2011-12-20 Thread Manik Surtani
On 14 Dec 2011, at 13:55, Galder Zamarreño wrote: Yeah it's pointless to use locks if you have a single operation, but I might want to do more operations in a single transaction.. actually what's the point of using a transaction if I have only one operation? WIthout transaction it is

Re: [infinispan-dev] Some flags are incompatible with implicit transactions

2011-12-14 Thread Mircea Markus
On 13 Dec 2011, at 14:10, Galder Zamarreño gal...@jboss.org wrote: Hi all, Re: https://issues.jboss.org/browse/ISPN-1556 Re: https://github.com/infinispan/infinispan/pull/719/files#r288994 The fix I suggest works well with explicit transactions, but if we leave this as is, implicit

Re: [infinispan-dev] Some flags are incompatible with implicit transactions

2011-12-14 Thread Mircea Markus
On 13 Dec 2011, at 15:49, Galder Zamarreño gal...@redhat.com wrote: On Dec 13, 2011, at 2:39 PM, Sanne Grinovero wrote: Why would you avoid FORCE_WRITE_LOCK ? Does the following make sense? tx.begin() cache.withFlags(FORCE_WRITE_LOCK).get(…) tx.commit() It doesn't in my view.

Re: [infinispan-dev] Some flags are incompatible with implicit transactions

2011-12-14 Thread Mircea Markus
On 13 Dec 2011, at 16:00, Sanne Grinovero wrote: On 13 December 2011 13:48, Galder Zamarreño gal...@redhat.com wrote: On Dec 13, 2011, at 2:39 PM, Sanne Grinovero wrote: Why would you avoid FORCE_WRITE_LOCK ? Does the following make sense? tx.begin()

Re: [infinispan-dev] Some flags are incompatible with implicit transactions

2011-12-14 Thread Mircea Markus
On 13 Dec 2011, at 17:04, Slorg1 wrote: Hi, I guess I will troll a little here but it seems to me that the implicit transactions are the issue. What Galder suggested does makes sense( that you would want a failure to put in the cache in some circumstances to have no incidence) but some

Re: [infinispan-dev] Some flags are incompatible with implicit transactions

2011-12-14 Thread Galder Zamarreño
On Dec 14, 2011, at 2:45 PM, Mircea Markus wrote: On 13 Dec 2011, at 16:00, Sanne Grinovero wrote: On 13 December 2011 13:48, Galder Zamarreño gal...@redhat.com wrote: On Dec 13, 2011, at 2:39 PM, Sanne Grinovero wrote: Why would you avoid FORCE_WRITE_LOCK ? Does the following

Re: [infinispan-dev] Some flags are incompatible with implicit transactions

2011-12-14 Thread Mircea Markus
On 14 Dec 2011, at 15:55, Galder Zamarreño wrote: On Dec 14, 2011, at 2:45 PM, Mircea Markus wrote: On 13 Dec 2011, at 16:00, Sanne Grinovero wrote: On 13 December 2011 13:48, Galder Zamarreño gal...@redhat.com wrote: On Dec 13, 2011, at 2:39 PM, Sanne Grinovero wrote: Why would

Re: [infinispan-dev] Some flags are incompatible with implicit transactions

2011-12-14 Thread Mircea Markus
On 13 Dec 2011, at 19:08, Galder Zamarreño wrote: On Dec 13, 2011, at 4:04 PM, Slorg1 wrote: Hi, I guess I will troll a little here but it seems to me that the implicit transactions are the issue. What Galder suggested does makes sense( that you would want a failure to put in the

[infinispan-dev] Some flags are incompatible with implicit transactions

2011-12-13 Thread Galder Zamarreño
Hi all, Re: https://issues.jboss.org/browse/ISPN-1556 Re: https://github.com/infinispan/infinispan/pull/719/files#r288994 The fix I suggest works well with explicit transactions, but if we leave this as is, implicit txs might leak transactions. The reason is because if we allow a put with

Re: [infinispan-dev] Some flags are incompatible with implicit transactions

2011-12-13 Thread Galder Zamarreño
On Dec 13, 2011, at 2:39 PM, Sanne Grinovero wrote: Why would you avoid FORCE_WRITE_LOCK ? Does the following make sense? tx.begin() cache.withFlags(FORCE_WRITE_LOCK).get(…) tx.commit() It doesn't in my view. You force a write lock to then to something within a transaction with the

Re: [infinispan-dev] Some flags are incompatible with implicit transactions

2011-12-13 Thread Erik Salter
- From: infinispan-dev-boun...@lists.jboss.org [mailto:infinispan-dev-boun...@lists.jboss.org] On Behalf Of Galder Zamarreño Sent: Tuesday, December 13, 2011 8:49 AM To: infinispan -Dev List Subject: Re: [infinispan-dev] Some flags are incompatible with implicit transactions On Dec 13, 2011, at 2

Re: [infinispan-dev] Some flags are incompatible with implicit transactions

2011-12-13 Thread Slorg1
...@lists.jboss.org] On Behalf Of Sanne Grinovero Sent: Tuesday, December 13, 2011 9:24 AM To: infinispan -Dev List Subject: Re: [infinispan-dev] Some flags are incompatible with implicit transactions Right, it's also very useful to acquire locks on aggregates or groups by locking a representative

Re: [infinispan-dev] Some flags are incompatible with implicit transactions

2011-12-13 Thread Galder Zamarreño
On Dec 13, 2011, at 3:00 PM, Sanne Grinovero wrote: On 13 December 2011 13:48, Galder Zamarreño gal...@redhat.com wrote: On Dec 13, 2011, at 2:39 PM, Sanne Grinovero wrote: Why would you avoid FORCE_WRITE_LOCK ? Does the following make sense? tx.begin()

Re: [infinispan-dev] Some flags are incompatible with implicit transactions

2011-12-13 Thread Galder Zamarreño
] Some flags are incompatible with implicit transactions On Dec 13, 2011, at 2:39 PM, Sanne Grinovero wrote: Why would you avoid FORCE_WRITE_LOCK ? Does the following make sense? tx.begin() cache.withFlags(FORCE_WRITE_LOCK).get(…) tx.commit() It doesn't in my view. You force

Re: [infinispan-dev] Some flags are incompatible with implicit transactions

2011-12-13 Thread Galder Zamarreño
- From: infinispan-dev-boun...@lists.jboss.org [mailto:infinispan-dev-boun...@lists.jboss.org] On Behalf Of Sanne Grinovero Sent: Tuesday, December 13, 2011 9:24 AM To: infinispan -Dev List Subject: Re: [infinispan-dev] Some flags are incompatible with implicit transactions Right, it's

Re: [infinispan-dev] Some flags are incompatible with implicit transactions

2011-12-13 Thread Slorg1
Hi, On Tue, Dec 13, 2011 at 12:08, Galder Zamarreño gal...@redhat.com wrote: On Dec 13, 2011, at 4:04 PM, Slorg1 wrote: Hi, I guess I will troll a little here but it seems to me that the implicit transactions are the issue. What Galder suggested does makes sense( that you would want a