Publish message with confirm but still message is lost without error? #1284
Replies: 3 comments 7 replies
-
Those "strange logs" tell you something important: your client closed or lost TCP connection. Your code does not register any shutdown handlers so you only can find out about this from RabbitMQ logs. There are multiple separate failure scenarios that you assume are one (or all handled by publisher confirms):
In other words, you application use publisher confirms to find out when they must resent one or a group of messages. There are other failures scenarios that publisher confirms do not cover, |
Beta Was this translation helpful? Give feedback.
-
Your code should have caught this exception:
Did it? Please avoid using https://www.rabbitmq.com/tutorials/tutorial-seven-dotnet.html |
Beta Was this translation helpful? Give feedback.
-
We will not allow single sentence problem definitions and discussions of the Go client here. In fact, spamming existing discussions in random repos repeatedly is a good way to get an org-wide ban. Those who are experiencing "the same issue" should use an appropriate client library repo Discussions or the RabbitMQ server repo Discussions, and provide an executable way you can reproduce the behaviour. We do not guess in this community and the burden of proof/demonstration is on the reporter, not the core team. |
Beta Was this translation helpful? Give feedback.
-
RabbitMQ.Client version 6.4.0
dotnet 7.0
my send code:
I found sometimes message is lost, RabbitMQ server with some strange log:
I shoud got error when connection is lost, however I got nothing.
Beta Was this translation helpful? Give feedback.
All reactions