[infinispan-dev] Lambda's & Batching

Galder Zamarreño galder at redhat.com
Thu Oct 1 09:37:51 EDT 2015


https://issues.jboss.org/browse/ISPN-5806

--
Galder Zamarreño
Infinispan, Red Hat

> On 1 Oct 2015, at 15:33, Galder Zamarreño <galder at redhat.com> wrote:
> 
> Replies inline:
> 
>> On 1 Oct 2015, at 00:16, Sanne Grinovero <sanne at infinispan.org> wrote:
>> 
>> A local cache with batching enabled produces this:
>> 
>> java.lang.IllegalArgumentException: Cannot create a transactional
>> context without a valid Transaction instance.
>> at org.infinispan.context.TransactionalInvocationContextFactory.createInvocationContext(TransactionalInvocationContextFactory.java:69)
>> at org.infinispan.context.TransactionalInvocationContextFactory.createInvocationContext(TransactionalInvocationContextFactory.java:63)
>> at org.infinispan.functional.impl.ReadWriteMapImpl.eval(ReadWriteMapImpl.java:56)
>> at org.infinispan.lucene.impl.FileListOperations.addFileName(FileListOperations.java:60)
>> (<-- experimental uncommitted code here)
>> 
>> 
>> I'm guessing the eval implementations is needing the
>> "auto-transaction-start" semantics which we normally have for other
>> operations in a batching cache... right?
>> 
>> But I wonder about the usefulness of having a short lived batching
>> context when all I'm doing is sending a lambda to a specific entry:
>> wouldn't it be even better to treat this as a no-context operation?
> 
> I agree, if no transaction is in context, it'd be better to treat it as single operation context. 
> 
> I'll add a JIRA and address it.
> 
> Cheers,
> 
>> 
>> Thanks,
>> Sanne
>> _______________________________________________
>> infinispan-dev mailing list
>> infinispan-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/infinispan-dev




More information about the infinispan-dev mailing list