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

(8.0.z) Transactions have unexpected heuristit status after failover injection

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 8.0 Update 8
    • Transactions
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • +
      1. git clone git@gitlab.cee.redhat.com:jbossqe-eap/tests-transactions.git
      2. git checkout 8.0.x
      3. run test the test JPAInjectedFailureCMRTestCase(jta).injectFailOnCommitAndRollbackAtExit

      The JPAInjectedFailureTestCase that is part of the transaction testsuite is failing in the newest release. It ends up with transactions in  unexpected heuristit status after failover injection.

      Description of the test: The test case injects some failures to the process of two-phase-commit protocol. Which means that we intentionally adds some exception being thrown in the 2PC methods and we check the results at the end.
      Test flow:
            1) prepare jdbc xa resource
            2) prepare test xa resource
            3) commit jdbc xa resource
            4) RuntimeException is thrown
            5) commit test xa resource
            6) do recovery
            7) as the jdbc xa resource was already prepared the recovery will
               do commit on the prepare resource

      Expected failures:
            MySQL
              com.mysql.jdbc.jdbc2.optional.MysqlXAException: XAER_RMFAIL: The command cannot be executed when global transaction is in the PREPARED state.

      The affected part of the testsuite can be seen here: https://cp-80x-jenkins.eapqe.psi.redhat.com/job/eap-80x-transactions-crashrec-tests-jpa-full/112/.

      JPAInjectedFailureCMRTestCase_injectFailOnCMRResourceCommit_jta_server.log contains log of one of the failed tests from the pipeline.

              Unassigned Unassigned
              kathermanova Katarína Hermanová
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: