Hi, I'm using build version 643461 of activemq (windows XP, Java 6, MySQL).
(svn link https://svn.apache.org/repos/asf/activemq/trunk)

Sometime, a (or some) message(s) hang in the queue while no consumer eat it.
It happen after a failover. 

Scenario:
2 brokers (jdbc master/slave), 2 consumers, 2 producers

Producers :
  ant producer
-Durl="failover:(tcp://localhost:61618,tcp://localhost:61619)"
-Ddurable=true -Dmax=500
Consumer 1: 
  ant consumer
-Durl="failover:(tcp://localhost:61618,tcp://localhost:61619)" -Dmax=10000
-DclientId=c1
Consumer 2:
  ant consumer
-Durl="failover:(tcp://localhost:61618,tcp://localhost:61619)" -Dmax=10000
-DclientId=c2

1 - Start the two brokers (one will be master, the other will be slave)
2 - Start the producers, consumers
3 - Wait a little,
4 - Kill the master -> slave become master
5 - Producers continue producing, consumers continue consuming
6 - After all producers finish their task, the consumer will finish
consuming, and sometimes there still messages left in the queue (in the
database, and using JMX to see the state of the queue).
7 - Restart a new broker, kill the master
8 - The messages will be consumed

Is there something missing in my test?

I have seen older post that seem related to this problem, but I didn't have
found any bug in Jira for this problem, is there an entry in Jira?

Thanks
-- 
View this message in context: 
http://www.nabble.com/Messages-hang-in-Queue-even-when-consumers-are-present-after-failover-tp16422835s2354p16422835.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to