]
Galder Zamarreño updated ISPN-5806:
-----------------------------------
Summary: Do not start a transaction for single operations (was: Do not try to start a
transaction for single functional operations)
Do not start a transaction for single operations
------------------------------------------------
Key: ISPN-5806
URL:
https://issues.jboss.org/browse/ISPN-5806
Project: Infinispan
Issue Type: Sub-task
Reporter: Galder Zamarreño
Assignee: Galder Zamarreño
Fix For: 8.1.0.Alpha2, 8.1.0.Final
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.