[rabbitmq-discuss] Acknowledgement bug with Tx

Yogesh Ketkar yogimogi at gmail.com
Mon Feb 6 17:04:54 GMT 2012


Thanks Emile.

On Feb 6, 6:54 pm, Emile Joubert <em... at rabbitmq.com> wrote:
> Hi,
>
> On 05/02/12 06:48, Yogesh Ketkar wrote:
>
> >     ch.basicAck(r.getEnvelope().getDeliveryTag(), false);
>
> This acknowledgement will not take effect until the transaction is
> committed. These pages contain more information:
>
> http://www.rabbitmq.com/semantics.htmlhttp://www.rabbitmq.com/amqp-0-9-1-quickref.html#class.tx
>
> > And now if I pause the program, this state remains forever and if I
> > kill the program, it looks like
>
> That would be similar to rolling back the transaction.
>
> > Strangely, it happens only the first time, i.e. If I keep on running
> > this code, in the end status looks like.
>
> Looping around will commit all but the last acknowledgement.
>
> -Emile
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-disc... at lists.rabbitmq.comhttps://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss


More information about the rabbitmq-discuss mailing list