[infinispan-issues] [JBoss JIRA] (ISPN-8853) Registering interposed synchronization fails in async operation with implicit transaction
Radim Vansa (JIRA)
issues at jboss.org
Tue Feb 20 08:38:00 EST 2018
Radim Vansa created ISPN-8853:
---------------------------------
Summary: Registering interposed synchronization fails in async operation with implicit transaction
Key: ISPN-8853
URL: https://issues.jboss.org/browse/ISPN-8853
Project: Infinispan
Issue Type: Bug
Components: Core, Transactions
Affects Versions: 9.2.0.CR2
Reporter: Radim Vansa
{{TransactionTable.enlist}} calls {{transactionSynchronizationRegistry.registerInterposedSynchronization(sync);}} but when an async operation is invoked with implicit transaction, the thread-local transaction is suspended. That can result in
{code}
java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)
at org.jboss.as.txn.service.internal.tsr.TransactionSynchronizationRegistryWrapper.registerInterposedSynchronization(TransactionSynchronizationRegistryWrapper.java:69)
{code}
I guess that since {{TransactionSynchronizationRegistry}} does not offer a variant that would accept the transaction as parameter we need to wrap the call with resume & suspend.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the infinispan-issues
mailing list