ying, do you think it would be possible to build a test case that reproduced the problem. Possibly based on QueueMasterSlaveTest[1] or based on something similar?
[1] http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/ft/QueueMasterSlaveTest.java?view=markup 2008/7/16 yinghe0101 <[EMAIL PROTECTED]>: > > hi, > 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. > > ying > -- > View this message in context: > http://www.nabble.com/Slave-broker-out-of-sync-with-master-tp18492930p18492930.html > Sent from the ActiveMQ - Dev mailing list archive at Nabble.com. > >
