-
Bug
-
Resolution: Done
-
Major
-
None
-
8.0 Update 8
-
None
-
False
-
-
False
-
-
-
-
-
-
+
-
- git clone git@gitlab.cee.redhat.com:jbossqe-eap/tests-transactions.git
- git checkout 8.0.x
- 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.
- blocks
-
JBEAP-30284 (8.0.z) Transactions have unexpected heuristit status after failover injection
-
- Closed
-