Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AMQ-7052 - Fix JdbcXARecoveryBrokerTest and mLevelDBXARecoveryBrokerTest tests #298

Open
wants to merge 1 commit into
base: activemq-5.15.x
from

Conversation

@alanprot
Copy link
Contributor

alanprot commented Sep 14, 2018

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.

Change that introduced this feature: ce7498c

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

@alanprot alanprot force-pushed the alanprot:activemq-5.15.x-Xa-rollback-tests branch 2 times, most recently from 62b3fb6 to bc8706b Sep 15, 2018
@alanprot alanprot force-pushed the alanprot:activemq-5.15.x-Xa-rollback-tests branch from bc8706b to 05a2526 Sep 16, 2018
@jbonofre jbonofre self-requested a review May 14, 2019
Copy link
Member

jbonofre left a comment

Can you please rebase and fix conflict ? For the record, can you also please create the PR based on master and then we cherry-pick on other branches ? Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.