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] [Created] (AMQ-4329) AMQ2149Test
Date Mon, 18 Feb 2013 20:49:12 GMT
Kevin Earls created AMQ-4329:
--------------------------------

             Summary: AMQ2149Test 
                 Key: AMQ-4329
                 URL: https://issues.apache.org/jira/browse/AMQ-4329
             Project: ActiveMQ
          Issue Type: Bug
          Components: Test Cases
         Environment: Mac, JDK7
            Reporter: Kevin Earls


Note: The KahaDB version of this test (AMQ2149KahaDBTest) is working correctly.

This test has two cases that fail, testQueueTransactionalOrderWithRestart, and testOrderWithRestart.
 testQueueTransactionalOrderWithRestart fails after the server is restarted with the following
exception


junit.framework.AssertionFailedError: queue://test.dest.0 received 6 expected 5681
        at junit.framework.Assert.fail(Assert.java:57)
        at junit.framework.TestCase.fail(TestCase.java:227)
        at org.apache.activemq.bugs.AMQ2149Test$Receiver.onMessage(AMQ2149Test.java:201)
        at org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:1321)
        at org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:131)
        at org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:202)
        at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:129)
        at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:47)
        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)


The testOrderWithRestart case works correctly when run on it's own, and only fails if run
after testQueueTransactionalOrderWithRestart with messages like the following:

2013-02-18 15:41:25,528 [ Session Task-1] - WARN  AMQ2149Test                    - queue://test.dest.0
received 6082 in msg: ID:Kevins-MacBook-Pro.local-60920-1361220011508-5:1:1:1:6083 expected
0, l\
astId: null, message:ActiveMQTextMessage {commandId = 6087, responseRequired = true, messageId
= ID:Kevins-MacBook-Pro.local-60920-1361220011508-5:1:1:1:6083, originalDestination = null,
originalTran\
sactionId = null, producerId = ID:Kevins-MacBook-Pro.local-60920-1361220011508-5:1:1:1, destination
= queue://test.dest.0, transactionId = null, expiration = 0, timestamp = 1361220082802, arrival
= 0\
, brokerInTime = 1361220085522, brokerOutTime = 1361220085522, correlationId = null, replyTo
= null, persistent = true, type = null, priority = 4, groupID = null, groupSequence = 0, targetConsumerId
\
= null, compressed = false, userID = null, content = null, marshalledProperties = org.apache.activemq.util.ByteSequence@d3bf5f8,
dataStructure = null, redeliveryCounter = 0, size = 0, properties = {s\
eqNum=6082}, readOnlyProperties = true, readOnlyBody = true, droppable = false, text = 186704152740050035096258373992406547145203959...321183574477}
2013-02-18 15:41:25,528 [ Session Task-1] - ERROR AMQ2149Test                    - queue://test.dest.0
onMessage error
junit.framework.AssertionFailedError: queue://test.dest.0 received 6082 expected 0
        at junit.framework.Assert.fail(Assert.java:57)
        at junit.framework.TestCase.fail(TestCase.java:227)
        at org.apache.activemq.bugs.AMQ2149Test$Receiver.onMessage(AMQ2149Test.java:201)
        at org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:1321)
        at org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:131)
        at org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:202)
        at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:129)
        at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:47)
        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)

It looks like messages send by testQueueTransactionalOrderWithRestart are not cleaned up when
that test fails.


--
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