[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 18:59:58 GMT 2013


@Alvaro: The same code works perfect, if there are no pthread_mutex_lock.

Can Allan know anything about it.
@Alan Antonuk: Alan, do you have any issue in your library with regard to
thread locks (pthread_mutex_lock) ?




On Tue, Dec 17, 2013 at 12:26 AM, Alvaro Videla <videlalvaro at gmail.com>wrote:

> Well, perhaps either your code or the AMQP library has that problem.
> RabbitMQ doesn't know anything about application specific code.
>
> On Mon, Dec 16, 2013 at 6:48 PM, Raj Kumar Sanpui
> <raj.kumar.sanpui at gmail.com> wrote:
> > Seems like rabbitmq has an allergy towards thread locks.
> > Invoke a consumer thread (basic.consume) calling pthread_mutex_lock( )
> and
> > all but one message gets dropped. Same works absolutely fine, if no
> thread
> > locks are used.
> >
> >
> > On Mon, Dec 16, 2013 at 11:22 PM, Michael Klishin <
> mklishin at gopivotal.com>
> > wrote:
> >>
> >> On 16 Dec 2013, at 21:47, Raj Kumar Sanpui <raj.kumar.sanpui at gmail.com>
> >> wrote:
> >>
> >> > In between, do we have any man page for basic.consume?
> >> >
> >> > What does "no ack", "exclusive", "local" stands for?
> >>
> >> Ignore local. Exclusive means that there can only ever be one consumer
> on
> >> the queue.
> >>
> >> no ack means “no manual ack”, that is, you don’t intend to use manual
> >> acknowledgements of
> >> deliveries. See tutorial 2: http://www.rabbitmq.com/getstarted.html
> >> and http://www.rabbitmq.com/amqp-0-9-1-reference.html#domain.no-ack
> >>
> >> MK
> >>
> >> Software Engineer, Pivotal/RabbitMQ
> >>
> >>
> >> _______________________________________________
> >> rabbitmq-discuss mailing list
> >> rabbitmq-discuss at lists.rabbitmq.com
> >> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
> >
> >
> >
> > _______________________________________________
> > rabbitmq-discuss mailing list
> > rabbitmq-discuss at lists.rabbitmq.com
> > https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
> >
> _______________________________________________
> 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/20131217/f1862cb1/attachment.html>


More information about the rabbitmq-discuss mailing list