Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-6040

XAResource.recover() via teiid JDBC can return null value

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 15.0
    • Fix Version/s: None
    • Component/s: JDBC Driver, Server
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      I attached clientxa.zip. That includes reproducer as XAClient.java.
      Please see README.md to reproduce the behaviour.

      Show
      I attached clientxa.zip. That includes reproducer as XAClient.java. Please see README.md to reproduce the behaviour.

      Description

      When an external transaction manager (e.g. on spring-boot) executes XAResource.recover() via teiid jdbc, recover can returns null. This behaviour can be seen if the teiid server haven't handle any transaction yet after starting up.

      According to the javadoc, it seems that the recover() should return 0 or more length array.
      "The resource manager returns zero or more XIDs of the transaction branches that are currently in a prepared or heuristically completed state."
      https://docs.oracle.com/javase//8/docs/api/javax/transaction/xa/XAResource.html#recover-int-

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                shawkins Steven Hawkins
                Reporter:
                hiroki.daicho Hiroki Daicho
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: