[rabbitmq-discuss] Why does the queue drop other messages after the first is consumed?
Raj Kumar Sanpui
raj.kumar.sanpui at gmail.com
Mon Dec 16 17:30:01 GMT 2013
Here is what it says:
amqp_basic_consume_ok_t<http://alanxz.github.io/rabbitmq-c/docs/0.2/structamqp__basic__consume__ok__t.html>*
amqp_basic_consume
(amqp_connection_state_t<http://alanxz.github.io/rabbitmq-c/docs/0.2/amqp_8h.html#a59cfdff3bfbf28aba201be5636365fa4>
state, amqp_channel_t<http://alanxz.github.io/rabbitmq-c/docs/0.2/amqp_8h.html#a2905d3cff4f5b3e0a300c3d424181518>
channel,amqp_bytes_t<http://alanxz.github.io/rabbitmq-c/docs/0.2/structamqp__bytes__t.html>
queue, amqp_bytes_t<http://alanxz.github.io/rabbitmq-c/docs/0.2/structamqp__bytes__t.html>
consumer_tag,amqp_boolean_t<http://alanxz.github.io/rabbitmq-c/docs/0.2/amqp_8h.html#a67852bce88f5784b60b8f873fd4673f2>
no_local, amqp_boolean_t<http://alanxz.github.io/rabbitmq-c/docs/0.2/amqp_8h.html#a67852bce88f5784b60b8f873fd4673f2>
no_ack,amqp_boolean_t<http://alanxz.github.io/rabbitmq-c/docs/0.2/amqp_8h.html#a67852bce88f5784b60b8f873fd4673f2>
exclusive, amqp_table_t<http://alanxz.github.io/rabbitmq-c/docs/0.2/structamqp__table__t.html>
arguments )
amqp_basic_consume
Parameters [in]stateconnection state [in]channelthe channel to do the RPC on[in]
queuequeue [in]consumer_tagconsumer_tag [in]no_localno_local [in]no_ack
no_ack [in]exclusiveexclusive [in]argumentsarguments Returns
amqp_basic_consume_ok_t<http://alanxz.github.io/rabbitmq-c/docs/0.2/structamqp__basic__consume__ok__t.html>
On Mon, Dec 16, 2013 at 10:58 PM, Raj Kumar Sanpui <
raj.kumar.sanpui at gmail.com> wrote:
> Yeah, i will look at that right now, perhaps i was looking at my debug,
> and i found:
> After i call:
> amqp_basic_consume(conn, 1, queuename, amqp_empty_bytes, 0, 1, 0,
> amqp_empty_table);
>
> Right after this call, the messages are truncated to 0.
>
> I had put debug of queue count, before and after this.
> Any hints?
>
>
>
>
> On Mon, Dec 16, 2013 at 10:45 PM, Michael Klishin <
> michael.s.klishin at gmail.com> wrote:
>
>>
>> 2013/12/16 Raj Kumar Sanpui <raj.kumar.sanpui at gmail.com>
>>
>>> Yes, the messages are dispatched, but something happens in consume
>>> method, which makes it drop. I am trying a line-by-line debug.
>>
>>
>> Have you tried looking at RabbitMQ log first? Perhaps something in the
>> delivery handler
>> causes a channel-level error.
>> --
>> MK
>>
>> http://github.com/michaelklishin
>> http://twitter.com/michaelklishin
>>
>> _______________________________________________
>> rabbitmq-discuss mailing list
>> rabbitmq-discuss at lists.rabbitmq.com
>> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20131216/d1ac754d/attachment.html>
More information about the rabbitmq-discuss
mailing list