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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Won't Do
    • 15.0
    • None
    • 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.

    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-

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: