Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-8993

2PC Inflow transactions don't work for JTA

    XMLWordPrintable

Details

    • Regression
    • Hide

      git clone http://git.app.eng.bos.redhat.com/git/jbossqe-eap-tests-transactions.git JBOSS_HOME=... (downloadable at http://download.eng.brq.redhat.com/devel/candidates/JBEAP/)

      mvn clean verify -Djboss.dist=$JBOSS_HOME -am -pl jbossts -DfailIfNoTests=false -Dtest=JcaInflowTransactionTestCase#noneTwoPhase -Dsurefire.forked.process.timeout=0 -Djbossts.noJTS -Dmaven.repo.local=path-to-eap-local-maven-repository -Deap -Dversion.eap=7.1.0.Alpha1-redhat-13

      Show
      git clone http://git.app.eng.bos.redhat.com/git/jbossqe-eap-tests-transactions.git JBOSS_HOME=... (downloadable at http://download.eng.brq.redhat.com/devel/candidates/JBEAP/ ) mvn clean verify -Djboss.dist=$JBOSS_HOME -am -pl jbossts -DfailIfNoTests=false -Dtest=JcaInflowTransactionTestCase#noneTwoPhase -Dsurefire.forked.process.timeout=0 -Djbossts.noJTS -Dmaven.repo.local=path-to-eap-local-maven-repository -Deap -Dversion.eap=7.1.0.Alpha1-redhat-13

    Description

      Inflow transactions are initiated by an external enterprise information system (EIS). If a message arrive from the EIS in a transaction, the EAP should import the tx context (thru resource adapter (RAR)) and perform the business process on that message in the same transaction.
      In our test two participants are part of TM subordinate transaction driven by RAR and two phase commit (2PC) is expected to be processed by TM on those participants.
      It seems that since DR12 TM doesn't know about inflow tx and returns XA_RDONLY on prepare call. After that it ends up with XAException on commit call.

      2017-02-21 10:41:38,265 ERROR [org.jboss.as.test.jbossts.crashrec.jca.rar.TestResourceTxnWorkUnit] (default-threads - 1) Can't run javax.resource.spi.XATerminator command based on message 'commit 1' XAException 'null' with error code 'XAER_INVAL'?: javax.transaction.xa.XAException
      	at com.arjuna.ats.internal.jta.transaction.arjunacore.jca.XATerminatorImple.commit(XATerminatorImple.java:98)
      	at org.jboss.as.test.jbossts.crashrec.jca.rar.TestResourceTxnWorkUnit.run(Unknown Source)
      	at org.jboss.jca.core.workmanager.WorkWrapper.runWork(WorkWrapper.java:445)
      	at org.jboss.jca.core.workmanager.WorkWrapper.run(WorkWrapper.java:223)
      	at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33)
      	at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:808)
      	at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45)
      	at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:828)
      	at java.lang.Thread.run(Thread.java:745)
      	at org.jboss.threads.JBossThread.run(JBossThread.java:320)
      

      Full log attached.

      Attachments

        Issue Links

          Activity

            People

              ochaloup@redhat.com Ondrej Chaloupka (Inactive)
              dsimko Daniel Simko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: