]
Galder Zamarreño reassigned ISPN-5806:
--------------------------------------
Assignee: Radim Vansa (was: Galder Zamarreño)
Add transaction support for Functional API
------------------------------------------
Key: ISPN-5806
URL:
https://issues.jboss.org/browse/ISPN-5806
Project: Infinispan
Issue Type: Sub-task
Reporter: Galder Zamarreño
Assignee: Radim Vansa
A local cache with batching enabled produces this:
{code:java}
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)
{code}
For single operations that carry no transaction context, don't try to start a
transaction and create a transactional context.