You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Kevin Earls (JIRA)" <ji...@apache.org> on 2014/02/14 17:36:33 UTC

[jira] [Reopened] (AMQ-4854) JmsRollbackRedeliveryTest.testRedeliveryWithPrefetch1 fails intermittently

     [ https://issues.apache.org/jira/browse/AMQ-4854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Earls reopened AMQ-4854:
------------------------------


This is still failing in a couple of places, most recently .testValidateRedeliveryCountOnRollback and testRedeliveryWithPrefetch1.  I've seen this in some other tests where it seems like broker.stop in tearDown() doesn't really wait for everything to shut down, even if you call waitUntilStopped.

All of the tests are fine if run alone.  I'll add a short sleep at the end of the tearDown() to take care of this.


> JmsRollbackRedeliveryTest.testRedeliveryWithPrefetch1 fails intermittently
> --------------------------------------------------------------------------
>
>                 Key: AMQ-4854
>                 URL: https://issues.apache.org/jira/browse/AMQ-4854
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Test Cases
>            Reporter: Kevin Earls
>            Assignee: Kevin Earls
>            Priority: Minor
>
> This tests fails on some CI boxes and slow machines
> javax.jms.JMSException: peer (vm://localhost#5) stopped.
> 	at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:54)
> 	at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1405)
> 	at org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1510)
> 	at org.apache.activemq.ActiveMQConnection.start(ActiveMQConnection.java:524)
> 	at org.apache.activemq.JmsRollbackRedeliveryTest.doTestRedelivery(JmsRollbackRedeliveryTest.java:84)
> 	at org.apache.activemq.JmsRollbackRedeliveryTest.testRedeliveryWithPrefetch1(JmsRollbackRedeliveryTest.java:76)
> 	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 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)
> Caused by: org.apache.activemq.transport.TransportDisposedIOException: peer (vm://localhost#5) stopped.
> 	at org.apache.activemq.transport.vm.VMTransport.stop(VMTransport.java:205)
> 	at org.apache.activemq.transport.TransportFilter.stop(TransportFilter.java:65)
> 	at org.apache.activemq.transport.TransportFilter.stop(TransportFilter.java:65)
> 	at org.apache.activemq.transport.ResponseCorrelator.stop(ResponseCorrelator.java:132)
> 	at org.apache.activemq.broker.TransportConnection.doStop(TransportConnection.java:1071)
> 	at org.apache.activemq.broker.TransportConnection$4.run(TransportConnection.java:1037)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 	at java.lang.Thread.run(Thread.java:722)



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)