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

recovery for non-unique xids

    XMLWordPrintable

Details

    • Undefined

    Description

      The XARecoveryModule currently assumes xids are globally unique. Sadly the real world isn't that simple...

      In transaction inflow cases it's not possible to change the bqual for each RM, resulting in multiple unrelated RMs potentially having the same xid. When a subordinate transaction recovers, it must correctly match XAResourceRecords to XAResources, but can't rely on the uniqueness of the xid values to do this.

      I placed a reproducer for the issue in my own git repo (I'll convert it to a git patch later so that you can test it against an upstream branch):

      git clone https://github.com/mmusgrov/narayana
      cd narayana/
      git co 4.17-JBTM-3361-reproducer
      ./build.sh clean install -DskipTests -Pall
      ./build.sh test -f ArjunaJTA/jta/pom.xml -Dtest=ImportNonUniqueBranchTest#testNotWrapped

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-jhallida Jonathan Halliday
              rhn-engineering-jhallida Jonathan Halliday
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: