activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Earls (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMQ-4292) org.apache.activemq.broker.RedeliveryRestartTest fails
Date Thu, 11 Apr 2013 15:39:16 GMT

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

Kevin Earls commented on AMQ-4292:
----------------------------------

This test fails whenever the checkpointThread defined in the startCheckpoint method of MessageDatabase.java
kicks in and calls checkpointCleanup in between the time the test creates the consumer and
calls rollback.  

You can get the test to fail consistently if you stick a Thread.sleep(100) inside the loop
that receives the first 5 messages before calling rollback.  This makes sure that this part
of the test takes longer than the default checkPoint interval, so checkpointCleanup gets called.
 


                
> org.apache.activemq.broker.RedeliveryRestartTest fails
> ------------------------------------------------------
>
>                 Key: AMQ-4292
>                 URL: https://issues.apache.org/jira/browse/AMQ-4292
>             Project: ActiveMQ
>          Issue Type: Test
>          Components: Test Cases
>            Reporter: Timothy Bish
>
> {noformat}
> -------------------------------------------------------------------------------
> Test set: org.apache.activemq.broker.RedeliveryRestartTest
> -------------------------------------------------------------------------------
> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 13.014 sec <<<
FAILURE!
> testValidateRedeliveryFlagAfterRestart(org.apache.activemq.broker.RedeliveryRestartTest)
 Time elapsed: 7.396 sec  <<< FAILURE!
> junit.framework.AssertionFailedError: redelivery count survives restart expected:<2>
but was:<3>
> 	at junit.framework.Assert.fail(Assert.java:57)
> 	at junit.framework.Assert.failNotEquals(Assert.java:329)
> 	at junit.framework.Assert.assertEquals(Assert.java:78)
> 	at junit.framework.Assert.assertEquals(Assert.java:159)
> 	at junit.framework.TestCase.assertEquals(TestCase.java:316)
> 	at org.apache.activemq.broker.RedeliveryRestartTest.testValidateRedeliveryFlagAfterRestart(RedeliveryRestartTest.java:80)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:601)
> 	at junit.framework.TestCase.runTest(TestCase.java:176)
> 	at junit.framework.TestCase.runBare(TestCase.java:141)
> 	at org.apache.activemq.CombinationTestSupport.runBare(CombinationTestSupport.java:106)
> 	at junit.framework.TestResult$1.protect(TestResult.java:122)
> 	at junit.framework.TestResult.runProtected(TestResult.java:142)
> 	at junit.framework.TestResult.run(TestResult.java:125)
> 	at junit.framework.TestCase.run(TestCase.java:129)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:255)
> 	at junit.framework.TestSuite.run(TestSuite.java:250)
> 	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
> 	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:601)
> 	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
> 	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
> 	at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
> 	at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:81)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message