activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yinghe0101 <>
Subject Slave broker out of sync with master
Date Wed, 16 Jul 2008 17:46:42 GMT

With the latest trunk, i still get the following:
javax.jms.JMSException: Slave broker out of sync with master: Dispatched
message (ID:yhe-3822-1216229856070-0:0:1:1:1) was not in the pending list

thus the messageAck will fail because it is not in the dispatch list

>From some investigation, i found that the MessageDispatchNotification
happens before the message is adding to the pending in PrefetchSubscription.
The following order needs to be enforced ( slave adding message to
pending-->slave get MessageDispatchNotification -->slave get MessageAck).
somehow there is a race condition which breaks the sync between the slave
and master 

I was trying to look into how the pending messages gets added on the slave,
any explanation or suggestion is appreciated. Thank you.

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

View raw message