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

Failed LRA is not kept in FailedTo* state in the object store

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 5.10.4.Final
    • Fix Version/s: None
    • Component/s: LRA
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      mvn clean installĀ -Parq -Dno.lra.coordinator -Dit.test=TckContextTests#testStatus,TckContextTests#testForget

      curl http://localhost:8080/lra-coordinator | jq -c '.[] | select(.status | contains("Active") or contains("Closing") or contains("Cancelling"))' | jq

      Show
      mvn clean installĀ -Parq -Dno.lra.coordinator -Dit.test=TckContextTests#testStatus,TckContextTests#testForget curl http://localhost:8080/lra-coordinator | jq -c '.[] | select(.status | contains("Active") or contains("Closing") or contains("Cancelling"))' | jq

      Description

      when executing TckContextTests#testStatus,TckContextTests#testForget one after another the LRA started in testForget is kept in Closing state in object store even when it's removed from the in memory LRA lists. When the testStatus invokes recovery this LRA is also recovered (because it's still in Closing state) and then it's kept even in the in memory recovery list and again displayed to users. The testForget LRA is finished with failing participant (returning FailedToComplete) and the second phase correctly returns FINISH_ERROR, however, this change needs to be also reflected in the state of the parent Transaction object.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mstefank Martin Stefanko
                  Reporter:
                  mstefank Martin Stefanko
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: