[rabbitmq-discuss] Incorrect number of messages saved to the queue after RabbitMQ broker failure

Matthew Sackman matthew at rabbitmq.com
Wed Mar 9 00:35:56 GMT 2011


On Tue, Mar 08, 2011 at 04:24:39PM -0800, Jerry Kuch wrote:
> If you haven't ACKed your 10 consumed messages, either by using the auto-ACK setting in your consuming code, or by explicitly invoking basic.ack, the broker will maintain those messages, since it isn't certain that a client has taken responsibility.  The intent of this behavior is to guard against the case where a consumer crashes after getting a message but before doing whatever work it had planned to do on it.

As the code shows, he is acking the messages just fine.

Matthew


More information about the rabbitmq-discuss mailing list