[rabbitmq-discuss] Lost messages after consumer crash
fabiomargarido at gmail.com
Mon Feb 14 11:53:27 GMT 2011
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
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
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.
More information about the rabbitmq-discuss