[
https://issues.jboss.org/browse/ISPN-5806?page=com.atlassian.jira.plugin....
]
Galder Zamarreño commented on ISPN-5806:
----------------------------------------
After careful consideration, it was agreed that running non-transactional operations in a
transactional cache could be problematic. The real solution here is to implement
transaction support for Functional API.
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: 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.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)