activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francois Guillemette <>
Subject Messages hang in Queue even when consumers are present after failover
Date Tue, 01 Apr 2008 19:47:22 GMT

Hi, I'm using build version 643461 of activemq (windows XP, Java 6, MySQL).
(svn link

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

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

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

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?

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message