]
Tom Jenkinson updated JBTM-2890:
--------------------------------
Fix Version/s: 5.next
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
Assignee: Tom Jenkinson
Fix For: 5.next
*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