Issue Details (XML | Word | Printable)

Key: AMQ-2009
Type: Bug Bug
Status: Reopened Reopened
Priority: Major Major
Assignee: Rob Davies
Reporter: Rajani Chennamaneni
Votes: 15
Watchers: 21
Operations

If you were logged in you would be able to see more operations.
ActiveMQ

Problem with message dispatch after a while

Created: 20/Nov/08 03:58 PM   Updated: 04/Sep/09 12:04 PM
Return to search
Issue 233 of 436 issue(s)
<< Previous | AMQ-2009 | Next >>
Component/s: Broker
Affects Version/s: 5.1.0, 5.2.0
Fix Version/s: 5.4.0

Time Tracking:
Not Specified

File Attachments:
  Size
Zip Archive Licensed for inclusion in ASF works AMQ-2009Testcase2.zip 2009-03-20 07:27 AM Torsten Mielke 7 kB
Zip Archive consumertest.zip 2008-12-15 09:14 AM Brecht Yperman 3 kB
Java Source File Licensed for inclusion in ASF works DispatchMultipleConsumersTest.java 2008-11-21 10:55 AM Rajani Chennamaneni 6 kB
Zip Archive Licensed for inclusion in ASF works testcase.zip 2009-03-18 10:48 AM Torsten Mielke 9 kB
Image Attachments:

1. JConsole-screenshot.jpg
(105 kB)


 Description  « Hide
Messages are not getting dispatched after a while (although it accepts new incoming messages) until restart of the broker. This problem is described in several posts.

http://www.nabble.com/Pending-Messages-are-shown-in-ActiveMQ-td20241332.html

http://www.nabble.com/Consumer-Listener-stop-receving-message-until-ActiveMQ-restart-td20355247.html

http://www.nabble.com/Stuck-messages---Dispatch-issues-td20467949.html

There was also an issue opened in Spring project for this thinking it was Spring problem.

http://jira.springframework.org/browse/SPR-5110

I am not able to reproduce with Junit test case having BrokerService started with in the test case. I guess I am not hitting the right stress conditions this way. But when I run the test case against an externally running ActiveMQ instance backed with oracle database persistence, it is reproducible most of the times. This is not a every time failure situation, it takes more time once than the other.

I was able to hit this situation of stuck messages on queue using following scenario most of the times:

1) Start 2 concurrent consumers for the queue using Spring's DefaultMessageListenerContainer using cacheLevelName as CACHE_CONSUMER
2) Send messages using JMETER 2.3.2 to the queue on ActiveMQ stand alone broker instance with 50 threads looping 20 times.
3) After a while, you will notice that Spring logs that no messages are being received but the messages are shown jconsole of ActiveMQ and the database backing it for persistence.

But in 5.2 RC3, the problem is that it dispatches duplicate messages and does not remove them from broker's database after acknowledge properly.

Attached test case might help to reproduce when run against externally running stand alone ActiveMQ broker. Another way to see the problem is that try to load test using JMETER by sending messages to a queue with a camel route that moves messages from this queue to another and you will notice that it stops moving after while or copied duplicates in case of 5.2 RC3.

Sorry about such a huge description but it is a real problem! A different team at our company are having this issue in production with 5.1. They are using it as an embedded broker with derby for persistence.



 All   Comments   Work Log   Change History   Subversion Commits   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
Rajani Chennamaneni made changes - 21/Nov/08 10:53 AM
Field Original Value New Value
Attachment DispatchMultipleConsumersTest.java [ 17321 ]
Rajani Chennamaneni made changes - 21/Nov/08 10:55 AM
Attachment DispatchMultipleConsumersTest.java [ 17325 ]
Maurits Lucas made changes - 15/Dec/08 02:30 AM
Attachment JConsole-screenshot.jpg [ 17429 ]
Brecht Yperman made changes - 15/Dec/08 09:14 AM
Attachment consumertest.zip [ 17432 ]
Rob Davies made changes - 17/Mar/09 09:52 AM
Assignee Rob Davies [ rajdavies ]
Torsten Mielke made changes - 18/Mar/09 10:48 AM
Attachment testcase.zip [ 17801 ]
Torsten Mielke made changes - 20/Mar/09 07:27 AM
Attachment AMQ-2009Testcase2.zip [ 17812 ]
Rob Davies made changes - 23/May/09 02:01 AM
Resolution Fixed [ 1 ]
Fix Version/s 5.3.0 [ 11914 ]
Status Open [ 1 ] Resolved [ 5 ]
ying made changes - 10/Jun/09 02:45 PM
Status Resolved [ 5 ] Reopened [ 4 ]
Resolution Fixed [ 1 ]
Gary Tully made changes - 24/Jun/09 04:21 AM
Fix Version/s 5.3.0 [ 11914 ]
Fix Version/s 5.4.0 [ 12110 ]
Rob Davies made changes - 04/Sep/09 12:04 PM
Priority Blocker [ 1 ] Major [ 3 ]