activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <>
Subject Re: best place to start to write a master/slave exclusive consumer failover test?
Date Tue, 28 Jun 2011 10:12:58 GMT
maybe start with a variant of and make
the consumers exclusive.

On the other hand, you may want to consider a shared store master
slave setup, the pure master slave setup is lagging behind a bit w.r.t
fixes and is limited w.r.t recovery after a failure so it does not
tend to get used much in production environments.

On 27 June 2011 22:54, mserrano <> wrote:
> Hi,
> I've encountered an error in my environment that I want to reproduce in a
> activemq test environment.  I am running 5.4.2 with a pure master/slave,
> persistence=true setup.  In my environment I have multiple consumers on a
> queue each with the exclusive.consumer=true flag set (consumerA and
> consumerB).  These consumers are created from a transacted session.  What I
> notice in my tests of killing the master:
> * test starts, consumerA gets the "lock on the queue", receiving fine in a
> transacted session
> * producer will send ~100 messages, the last message will cause a consumer
> to commit session
> * consumerB is in a receiveNoWait loop (it checks some other things sleeps
> and comes back)
> * master killed around message 30
> * The exclusive consumer is switched from from one to another (say from
> consumerA to consumerB)
> * consumerB will start getting messages from message 1, but some window of
> messages around the kill are not replayed
> I assume this is not expected behavior and would like to reproduce in the
> ActiveMQ test environment.  Can someone point me to a few tests that I
> should draw from to produce this test?  I've found some master/slave tests
> and some exclusive consumer tests, but not any exclusive consumer transacted
> tests or other combinations.
> Thanks,
> Martin
> --
> View this message in context:
> Sent from the ActiveMQ - Dev mailing list archive at


View raw message