Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-2890

asyncAfterSynchronization throw exception when transaction abort

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.2, 5.5.0.Final
    • Fix Version/s: 5.6.0.Final
    • Component/s: JTA
    • Labels:
      None
    • Steps to Reproduce:
      1. Run transaction with option com.arjuna.ats.arjuna.coordinator.asyncAfterSynchronization=true and synchronizations

      Description

      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

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tomjenkinson Tom Jenkinson
                Reporter:
                songco Colin Song
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: