Geronimo
  1. Geronimo
  2. GERONIMO-4482

a few improvements on XAExceptions during enlist resource, prepare, commit, rollback

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.4, 2.2
    • Fix Version/s: 2.1.4, 2.2
    • Component/s: transaction manager
    • Security Level: public (Regular issues)
    • Labels:
      None

      Description

      1. during enlist resource, if there is XAException arisen, we should mark status as rollback only because the enlist resource failed.
      2. during commit, convert XAER_RMERR, XAER_PROTO & XAER_INVAL to system exceptions.
      3. if system exceptions arisen during internal prepare, we should roll back the resource(s).
      4. during rollback, if XA_RBROLLBACK, XAER_RMERR,XAER_NOTA & XAER_RMFAIL arisen, we expect the transaction to be rolled back eventually thus don't throw anything. During commit, we throw rollback exceptions for these.
      5. if XAER_NOTA arisen from forget, means the resource already forgot the transaction, thus we don't throw any exception.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Lin Sun
            Reporter:
            Lin Sun
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development