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

Failing AfterLRA calls keep LRA in Closing state

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.Final
    • 5.10.4.Final
    • LRA
    • Fixes a bug that caused the LRA state to go from Closed -> Closing for unacknowledged @AfterLRA callback notifications.

      When the AfterLRA method returns different response codes than 200 the LRA is recovered in the next recovery run in the Closing/Compensating state. The state reported in the AfterLRA is correct (Closed/Canceled) but the status reported by the coordinator at /lra-coordinator is reported as Closing/Canceling which is breaking the LRA status model as the LRA transitions are Active -> Closing -> Closed -> (now the AfterLRA phase starts) -> Closing -> (now the AfterLRA phase finishes) -> Closed.

       

      I wrote a test that reproduces this - https://github.com/xstefank/narayana/commit/55a151ad78ef98c82ac3580a6818901a03c2e556

              rhn-engineering-mmusgrov Michael Musgrove
              mstefank Martin Stefanko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: