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

asyncAfterSynchronization throw exception when transaction abort

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 4.2, 5.5.0.Final
    • 5.6.0.Final
    • JTA
    • None
      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

      Attachments

        Activity

          People

            thjenkin@redhat.com Thomas Jenkinson
            songco_jira Colin Song (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: