]
Radim Vansa updated ISPN-8853:
------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request:
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.