[ 
https://issues.apache.org/jira/browse/AMQ-7052?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16616497#comment-16616497
 ] 

Alan Protasio edited comment on AMQ-7052 at 9/15/18 10:19 PM:
--------------------------------------------------------------

Ok.. I added a small change on 
[AMQ6463Test.java|https://github.com/apache/activemq/pull/298/commits/247a9e0112b3781a14674b281c13461c36f37c95#diff-e55b97296eb69a9df3ded2e3d98996d1]
 to make it be more resilient.

There are more tests failing.. My last run (before fixing AMQ6463Test) I got 
those errors:

Failed tests:
 AMQ3625Test.go:104 null
 
AMQ6463Test>CombinationTestSupport.runBare:113->CombinationTestSupport.runBare:107->testBlockedSechedulerSendNoError:76
 got blocked event
 TrapMessageInJDBCStoreTest.testDBCommitException:142 number of messages in DB 
after test expected:<0> but was:<1>
 
FailoverTransactionTest>CombinationTestSupport.runBare:107->testFailoverWithConnectionConsumer:711
 connectionconsumer did not get a message
 VMTransportBrokerNameTest.testBrokerInfoReceiptClientAsync:119 all success: 1
 DuplexAdvisoryRaceTest.testHang:171 received all sent: 0

Tests in error:
 JaasNetworkTest.testNetwork:68 » JMS Could not connect to broker URL: 
ssl://lo...
 
MultiKahaDBQueueDeletionTest>AbstractMultiKahaDBDeletionTest.testStoreCleanupDeleteDest2First:189
 » Runtime
 
MultiKahaDBTopicDeletionTest>AbstractMultiKahaDBDeletionTest.testStoreCleanupDeleteDest2First:189
 » Runtime

I will try to see them after.

 


was (Author: alanprot):
Ok.. I added a small change on 
[AMQ6463Test.java|https://github.com/apache/activemq/pull/298/commits/247a9e0112b3781a14674b281c13461c36f37c95#diff-e55b97296eb69a9df3ded2e3d98996d1]
 to make it be more resilient.

 

AMQ3625Test is failing too. In this case the broker is configured through a xml 
("JaasStompSSLBroker1.xml", "JaasStompSSLBroker2.xml") and in order to do so, 
it need this:

activemq-unit-tests/src/test/resources/META-INF/services/org/apache/xbean/spring/http/activemq.apache.org/schema/core

 

How can i fix it? Simply add this file? (adding this file makes this test 
happy! :P)

There are more tests failing.. My last run (before fixing AMQ6463Test) I got 
those errors:

Failed tests:
 AMQ3625Test.go:104 null
 
AMQ6463Test>CombinationTestSupport.runBare:113->CombinationTestSupport.runBare:107->testBlockedSechedulerSendNoError:76
 got blocked event
 TrapMessageInJDBCStoreTest.testDBCommitException:142 number of messages in DB 
after test expected:<0> but was:<1>
 
FailoverTransactionTest>CombinationTestSupport.runBare:107->testFailoverWithConnectionConsumer:711
 connectionconsumer did not get a message
 VMTransportBrokerNameTest.testBrokerInfoReceiptClientAsync:119 all success: 1
 DuplexAdvisoryRaceTest.testHang:171 received all sent: 0

Tests in error:
 JaasNetworkTest.testNetwork:68 » JMS Could not connect to broker URL: 
ssl://lo...
 
MultiKahaDBQueueDeletionTest>AbstractMultiKahaDBDeletionTest.testStoreCleanupDeleteDest2First:189
 » Runtime
 
MultiKahaDBTopicDeletionTest>AbstractMultiKahaDBDeletionTest.testStoreCleanupDeleteDest2First:189
 » Runtime

I will try to see them after.

 

> 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
>            Priority: Minor
>             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)

Reply via email to