[rabbitmq-discuss] Lost messages after consumer crash
Fabio Margarido
fabiomargarido at gmail.com
Mon Feb 14 11:50:47 GMT 2011
Hi there.
I'm new to RabbitMQ and this list. I've searched the archives but
haven't found an answer for my question, sorry if it's been asked
before.
I've downloaded the server and Java client packages and started
playing around. I've slightly modified the example Java code so that
the producer sends 100000 messages in a loop. Each message contains a
sequential number.
I've noticed that if I crash (Ctrl+C) the consumer in the middle if
the message reception flow and then start it up again, there's a gap
in the messages delivered, i.e., the sequential numbers after the
restart don't pick up from where they stopped. I thought this might be
related to Java and only the printing of the messages, but some quick
analysis of the network traces showed that apparently the non printed
messages are missing from the transmission.
Changing to transaction mode and manual ack didn't seem to help.
Has anyone seen this behavior before? Am I missing something? How can
I guarantee that all the messages are delivered?
Thanks in advance.
Fabio
More information about the rabbitmq-discuss
mailing list