[rabbitmq-discuss] Problem after upgrading to 2.3.1

Matthias Radestock matthias at rabbitmq.com
Fri Feb 25 11:46:03 GMT 2011


On 24/02/11 15:48, mysurf mail wrote:
> What I basically see is that we start listening on the receiving
> app (subscriber)  as follows:
>
>              boolean durable = false;
>              final boolean mandatory = true;
>              final boolean immediate = true;
>              channel.exchangeDeclare(exchangeName, "direct", durable,
> mandatory, immediate, new HashMap<String, Object>());
>              channel.queueDeclare(queueName, durable);
>              channel.queueBind(queueName, exchangeName, routingKey);
>
>              boolean noAck = true;
>              queueingConsumer = new QueueingConsumer(channel);
>              channel.basicConsume(queueName, noAck, queueingConsumer);

So the client is consuming in noAck/autoAck mode, which means it *must 
not* basicAck the messages. The error

>      > reply-code=406,reply-text=PRECONDITION_FAILED - unknown delivery tag
>      > 1,class-id=60,method-id=80),null,""}

is most likely due it doing that.

Regards,

Matthias.


More information about the rabbitmq-discuss mailing list