[rabbitmq-discuss] Unacked msgs in Dureable Q

Emile Joubert emile at rabbitmq.com
Wed Nov 14 15:52:20 GMT 2012


Hi Matthew,

On 14/11/12 11:48, m.luchak at smartasking.com wrote:
> qConsumer.getChannel().basicAck(msg.getDeliveryTag(), false);
>
> This "seems" to be working fine but the msgs are remaining Unacked....

The number of unacknowledged messages in the queue should decrease by 1 
when you successfully acknowledge a message:

  $ rabbitmqctl list_queues name messages_unacknowledged

> Could this be because it is not always the same consumer that first
> received the msgs that is doing the acking?
It is important that messages be acknowledged on the same channel as the 
channel they were received on.



-Emile





More information about the rabbitmq-discuss mailing list