Derby
  1. Derby
  2. DERBY-5167

Attempting to XAResource.end an xid that timed out / rolled back internally in the DB will give the wrong XA error

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 10.6.2.1
    • Fix Version/s: None
    • Component/s: JDBC
    • Urgency:
      Normal
    • Bug behavior facts:
      Deviation from standard

      Description

      See https://issues.apache.org/jira/browse/DERBY-5166:

      If after the scenario described there, we try to call XAResource.end for any of the Xids involved, we get errors like this:

      XA resource 'derbyXADB1': end for XID '3139322E3136382E302E34352E746D30303030313030303139:3139322E3136382E302E34352E746D31' raised -4: the supplied XID is invalid for this XA resource
      javax.transaction.xa.XAException

      However, since the xid was (presumably) rolled back after timeout in the DB, the correct error should be one of the XA_RB* error codes, rather than this confusing one?

        Activity

        Guy Pardon created issue -
        Hide
        Mike Matrigali added a comment -

        marking component as jdbc as first guess where problem might be. Could be in store also, but has feel of issue in the jdbc interface code.

        Show
        Mike Matrigali added a comment - marking component as jdbc as first guess where problem might be. Could be in store also, but has feel of issue in the jdbc interface code.
        Mike Matrigali made changes -
        Field Original Value New Value
        Component/s JDBC [ 11407 ]
        Mamta A. Satoor made changes -
        Labels derby_triage10_9
        Urgency Normal [ 10052 ]
        Gavin made changes -
        Workflow jira [ 12609274 ] Default workflow, editable Closed status [ 12801722 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Guy Pardon
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development