]
Tom Jenkinson commented on JBTM-2890:
-------------------------------------
Thanks for the report - PR raised
asyncAfterSynchronization throw exception when transaction abort
----------------------------------------------------------------
Key: JBTM-2890
URL:
https://issues.jboss.org/browse/JBTM-2890
Project: JBoss Transaction Manager
Issue Type: Bug
Components: JTA
Affects Versions: 5.5.0.Final, 5.5.24.Final
Reporter: Colin Song
*The problem:*
There's two problems about
asyncAfterSynchronization(com.arjuna.ats.arjuna.coordinator.asyncAfterSynchronization=true)
option:
* If we want asyncAfterSynchronization, we must set asyncBeforeSynchronization
* When tx abort, and we have asyncAfterSynchronization option, there's exception
*Root cause:* {{TwoPhaseCoordinator.synchronizationCompletionService}} and
{{TwoPhaseCoordinator.runningSynchronizations}} only inited in
{{asyncBeforeSynchronization}}
*Solution:*
Also init {{TwoPhaseCoordinator.synchronizationCompletionService}} and
{{TwoPhaseCoordinator.runningSynchronizations}} in asyncAfterSynchronization