You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Gary Tully (JIRA)" <ji...@apache.org> on 2018/09/18 09:43:00 UTC
[jira] [Resolved] (AMQ-7052) Fix tests related to
purgeRecoveredXATransactions property on the KahaDB
[ https://issues.apache.org/jira/browse/AMQ-7052?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Tully resolved AMQ-7052.
-----------------------------
Resolution: Fixed
Fix Version/s: (was: 5.x)
5.16.0
[~alanprot] Thanks for these fixes, much appreciated.
> 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.5, 5.15.6
> Reporter: Alan Protasio
> Assignee: Gary Tully
> Priority: Minor
> Fix For: 5.16.0
>
>
> 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)