You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Alan Protasio (JIRA)" <ji...@apache.org> on 2018/09/14 08:36:00 UTC

[jira] [Created] (AMQ-7052) Fix tests related to purgeRecoveredXATransactions property on the KahaDB

Alan Protasio created AMQ-7052:
----------------------------------

             Summary: Fix tests related to purgeRecoveredXATransactions property on the KahaDB
                 Key: AMQ-7052
                 URL: https://issues.apache.org/jira/browse/AMQ-7052
             Project: ActiveMQ
          Issue Type: Test
          Components: Test Cases
    Affects Versions: 5.15.6, 5.15.5
            Reporter: Alan Protasio
             Fix For: 5.x


Fix the following tests:

JdbcXARecoveryBrokerTest>CombinationTestSupport.runBare:107->XARecoveryBrokerTest.testPreparedTransactionRecoveredPurgeRollbackOnRestart:332 expected:<0> but was:<4>

JdbcXARecoveryBrokerTest>CombinationTestSupport.runBare:107->XARecoveryBrokerTest.testPreparedTransactionRecoveredPurgeCommitOnRestart:391 null

mKahaDBXARecoveryBrokerTest>CombinationTestSupport.runBare:107->XARecoveryBrokerTest.testPreparedTransactionRecoveredPurgeRollbackOnRestart:332 expected:<0> but was:<4>

mKahaDBXARecoveryBrokerTest>CombinationTestSupport.runBare:107->XARecoveryBrokerTest.testPreparedTransactionRecoveredPurgeCommitOnRestart:391 null

mLevelDBXARecoveryBrokerTest>CombinationTestSupport.runBare:107->XARecoveryBrokerTest.testPreparedTransactionRecoveredPurgeRollbackOnRestart:332 expected:<0> but was:<4>

Those tests are failing because this feature (purge transactions after reboot) was only implemented on the KahaDBPersistenceAdapter.

[https://github.com/apache/activemq/commit/ce7498c971b99e2515f07aab36418a1a0f19c03e]

The tests are failing because the class XARecoveryBrokerTest is used to test multiples adapters that are not implementing the same feature.

Steps to reproduce:

> git checkout [https://github.com/apache/activemq/tree/activemq-5.15.x]

> cd activemq-unit-tests

> mvn clean install -Dtest=JdbcXARecoveryBrokerTest

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)