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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 15.0
    • JDBC Driver, Server
    • None
    • 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.
    • Undefined

      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-

              rhn-engineering-shawkins Steven Hawkins
              rhn-support-hdaicho Hiroki Daicho (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: