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

Incorrect outcome when CMR fails at commit phase

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 7.1.0.DR13, 7.1.0.DR14
    • None
    • 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/)

      DS_PROPS="-Dds0.db=postgresql -Dds0.jdbc.driver.url=http://www.qa.jboss.com/jdbc-drivers-products/EAP/7.1.0/postgresql94/jdbc4/postgresql-9.4.1209.jar -Dds0.jdbc.xa-class=org.postgresql.xa.PGXADataSource -Dds0.jdbc.url=jdbc:postgresql://gen-vm006.mw.lab.eng.bos.redhat.com:5432/crashrec -Dds0.db.name=crashrec -Dds0.user=crashrec -Dds0.pass=crashrec -Dds0.jdbc.driver.jar=postgresql-driver.jar

      mvn clean verify -Djboss.dist=$JBOSS_HOME -am -pl jbossts -DfailIfNoTests=false -Dsurefire.forked.process.timeout=0 -Djbossts.noJTS -Dmaven.repo.local=path_to_eap-local-maven-repository -Deap -Dversion.eap=7.1.0.Alpha1-redhat-15 -Dtest=JPAInjectedFailureCMRTestCase#injectFailOnCommitAndRollback

      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/ ) DS_PROPS="-Dds0.db=postgresql -Dds0.jdbc.driver.url= http://www.qa.jboss.com/jdbc-drivers-products/EAP/7.1.0/postgresql94/jdbc4/postgresql-9.4.1209.jar -Dds0.jdbc.xa-class=org.postgresql.xa.PGXADataSource -Dds0.jdbc.url=jdbc:postgresql://gen-vm006.mw.lab.eng.bos.redhat.com:5432/crashrec -Dds0.db.name=crashrec -Dds0.user=crashrec -Dds0.pass=crashrec -Dds0.jdbc.driver.jar=postgresql-driver.jar mvn clean verify -Djboss.dist=$JBOSS_HOME -am -pl jbossts -DfailIfNoTests=false -Dsurefire.forked.process.timeout=0 -Djbossts.noJTS -Dmaven.repo.local=path_to_eap-local-maven-repository -Deap -Dversion.eap=7.1.0.Alpha1-redhat-15 -Dtest=JPAInjectedFailureCMRTestCase#injectFailOnCommitAndRollback

      We have the following test scenario:
      1) enlist CMR datasource
      2) enlist XA test datasource
      3) prepare CMR
      4) prepare XA
      5) commit on CMR datasource - fails with ResourceException (simulating unavailable database)
      5) aborting the second phase
      6) rollback on XA datasource - fails with XAException.XAER_RMERR (simulating trouble on rollback)
      7) do recovery
      which expects rollback outcome but since DR13 the outcome is commit. Unfortunately I don't see any clue in the (attached) log.

            tadamski@redhat.com Tomasz Adamski
            dsimko Daniel Simko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: