XA transaction failure with 3 involved servers

Solution Unverified - Updated

Environment

  • JBoss Enterprise Application Platform [EAP] 6

Issue

  • Setup/ call sequence:
    • client invokes EJB A on server A,
    • on server A
      • Container on A starts tx,
      • EJB A updates record in database and
      • invokes remotely EJB B on server B
    • on server B
      • EJB B again invokes a datasource and
      • invokes EJB C on server C,
    • on server C
      • EJB C updates record in database.
  • During invocation/transaction in flight server B crashes and get restarted
  • as some tx-branches get committed while other get rolled-back the outcome is inconsistent.

Resolution

Root Cause

  • When checking for orphaned subordinate transactions in the middle of a tree branches that are eligible for orphan detect
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.