[jbossts-issues] [JBoss JIRA] (JBTM-2890) asyncAfterSynchronization throw exception when transaction abort

Tom Jenkinson (JIRA) issues at jboss.org
Wed May 24 04:59:01 EDT 2017

     [ https://issues.jboss.org/browse/JBTM-2890?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom Jenkinson updated JBTM-2890:
        Status: Resolved  (was: Pull Request Sent)
    Resolution: Done

> 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
> *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

This message was sent by Atlassian JIRA

More information about the jbossts-issues mailing list