[infinispan-dev] putForExternalRead and stale locks

Galder Zamarreño galder at redhat.com
Mon Nov 5 05:08:10 EST 2012


On Nov 2, 2012, at 1:13 PM, Manik Surtani <manik at jboss.org> wrote:

> 
> On 1 Nov 2012, at 16:06, Galder Zamarreño <galder at redhat.com> wrote:
> 
>> 
>> 
>> On Oct 31, 2012, at 4:05 PM, Manik Surtani <manik at jboss.org> wrote:
>> 
>>> Guys
>>> 
>>> Someone's reported https://issues.jboss.org/browse/ISPN-2426 which can cause a stale lock when using putForExternalRead() in a non-transactional context.
>>> 
>>> The contributed patch looks good, I'm submitting a pull request - but a question to the Hibernate and AS folks on the list, I presume this is something you are both exposed to?  Or do you only use putForExternalRead() in a transactional context?
>> 
>> For the current 2LC, PFER is used within a transactional context.
> 
> Always?

Actually it's both.

For read only entities, you could execute a PFER outside of a transaction.

The other mode is transactional, in which case PFER is transactional.

ISPN-2426 has been fixed in 5.1.x as well, so should feed into the product.

> 
>> 
>>> 
>>> Cheers
>>> Manik
>>> --
>>> Manik Surtani
>>> manik at jboss.org
>>> twitter.com/maniksurtani
>>> 
>>> Platform Architect, JBoss Data Grid
>>> http://red.ht/data-grid
>>> 
>>> 
>>> _______________________________________________
>>> infinispan-dev mailing list
>>> infinispan-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>> 
>> 
>> --
>> Galder Zamarreño
>> galder at redhat.com
>> twitter.com/galderz
>> 
>> Project Lead, Escalante
>> http://escalante.io
>> 
>> Engineer, Infinispan
>> http://infinispan.org
>> 
>> 
>> _______________________________________________
>> infinispan-dev mailing list
>> infinispan-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
> 
> --
> Manik Surtani
> manik at jboss.org
> twitter.com/maniksurtani
> 
> Platform Architect, JBoss Data Grid
> http://red.ht/data-grid
> 
> 
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev


--
Galder Zamarreño
galder at redhat.com
twitter.com/galderz

Project Lead, Escalante
http://escalante.io

Engineer, Infinispan
http://infinispan.org




More information about the infinispan-dev mailing list