[rabbitmq-discuss] How to test Consumer failure(durability) scenario in RabbitMQ?

Rajasekhar P sekhar434145 at gmail.com
Thu Oct 17 14:31:25 BST 2013

Yes, I want to test message requeing scenario. Here, my target is, let say
there are two consumers, "consumer1" received message(ex - "Message1") from
queue (ex - "Test_Queue") and  consumer failed before acknowledgement to
server, so that message is not deleted from rabbitmq server right? That
same message ("Message1") has to be consumed by "consumer2" right?

So, this is the case I want test. Here, I want to stop the "consumer1"
before sending ack to rabbitmq server. So, how to achieve this? Thanks

On Thu, Oct 17, 2013 at 6:51 PM, Michael Klishin <mklishin at gopivotal.com>wrote:

> On 17 Oct 2013, at 17:16, Rajasekhar P <sekhar434145 at gmail.com> wrote:
> > Here, I am struck with how to test this case? can you please share me
> consumer code?
> Can we take a step back and clarify what will the test verify?
> If you want to test that messages are requeued, create a custom consumer
> that closes its channel
> and stops, for example. But this particular aspect is already tested in
> RabbitMQ server and Java client
> suites.
> MK
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20131017/799bd2b5/attachment.htm>

More information about the rabbitmq-discuss mailing list