Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-2406

XAResource.end does not set the XA transaction state correctly when the XAException is thrown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.3.1.4
    • 10.3.1.4
    • Network Client
    • None
    • Normal

    Description

      As the comments in DERBY-2360 show when calling the XAResource.end the XAException may be thrown even when the transaction was successfully disassociated from the connection but the transaction was marked as rollback only. The code at the end of XAResource.end function does not handle this correctly. It either throws an XAException or sets the connection state to XA_T0_NOT_ASSOCIATED. The corresponding code from NetXAResource.end method is

      if (rc != XAResource.XA_OK)

      { throwXAException(rc, false); }

      else

      { conn_.setXAState(Connection.XA_T0_NOT_ASSOCIATED); }

      Attachments

        1. d2406.diff
          0.8 kB
          Julius Stroffek

        Activity

          People

            julo Julius Stroffek
            julo Julius Stroffek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: