Messages lost or messages aren't consumed

678 views
Skip to first unread message

Viviane Oliveira

unread,
Nov 14, 2019, 6:40:12 AM11/14/19
to rabbitmq-users

Hi!


I don't know what is happening very well. After I publish a message in a queue, this message is never consumed, but the message is lost from the queue. I wrote many log messages before to publish and when get the consumer. I can see the log messages from the publisher, but I don't see them in the consumer.


Is there any possibility that this happen?


Thanks,

Viviane

Wesley Peng

unread,
Nov 14, 2019, 6:43:14 AM11/14/19
to rabbitm...@googlegroups.com
hello

On 2019/11/14 7:40 下午, Viviane Oliveira wrote:
> I don't know what is happening very well. After I publish a message in a
> queue, this message is never consumed, but the message is lost from the
> queue. I wrote many log messages before to publish and when get the
> consumer. I can see the log messages from the publisher, but I don't see
> them in the consumer.
>
>

Before the community can help you, we must know this information:

Version of Erlang and RabbitMQ
Operating system and version
RabbitMQ configuration files
RabbitMQ log files, or log file entries
Exact error output
Exact commands you are running, or code you are running

regards

Viviane Oliveira

unread,
Nov 14, 2019, 7:21:11 AM11/14/19
to rabbitmq-users
3.7.5Erlang 20.3.8.5
Linux

I have no error messages.

Wesley Peng

unread,
Nov 14, 2019, 7:25:24 AM11/14/19
to rabbitm...@googlegroups.com


On 2019/11/14 7:40 下午, Viviane Oliveira wrote:
> I don't know what is happening very well. After I publish a message in a
> queue, this message is never consumed, but the message is lost from the
> queue. I wrote many log messages before to publish and when get the
> consumer. I can see the log messages from the publisher, but I don't see
> them in the consumer.

Just my guess, they may be in broker always but don't get consumed due
to some configure or code issues, for example, the routing key not matched.

regards.

Luke Bakken

unread,
Nov 14, 2019, 9:19:03 AM11/14/19
to rabbitmq-users
Hello,


If RabbitMQ can't route a message to a queue, it is dropped. You should be publishing using publisher confirms so that this case is reported back to your application. I'm not sure how this is done using Spring.

Thanks,
Luke

Wesley Peng

unread,
Nov 14, 2019, 11:20:34 AM11/14/19
to rabbitm...@googlegroups.com
Thanks Luke for this help.

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/15350eb4-bf1a-4d27-8b74-3ff3cbf7b12d%40googlegroups.com.

Eyal Herlin

unread,
May 1, 2020, 6:36:18 AM5/1/20
to rabbitmq-users
Hi Luke, 

I'm new to RabbitMQ and I'm working on making our Rabbit code more resilient.

So, regarding your answer:
If I use publisher confirms won't I just get an Ack?
If so, how will that help me know the message was unroutable?
Am I missing something or did I misunderstand your answer?
I thought the only way to know a message was not routed is to set it to be mandatory and have the publisher handle basic.return.

Thanks,
Eyal

so that this case is reported back to your application.


Gary Russell

unread,
May 1, 2020, 9:47:11 AM5/1/20
to rabbitm...@googlegroups.com
You should enable returns as well as confirms; I answered the stack overflow question.

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.

Eyal Herlin

unread,
May 1, 2020, 10:40:39 AM5/1/20
to rabbitmq-users
Thanks a lot Gary.
I really appreciate the quick reply and clarification.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitm...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages