Corrupted message body received by consumer using RabbitMQ.Client 7.1.2 under high load (C#/.NET Framework 4.8) #1846
-
Describe the bugWhen consuming messages from RabbitMQ using RabbitMQ.Client 7.1.2 (.NET Framework 4.8, C# 7.3), the consumer occasionally receives a corrupted message body under high load. Reproduction steps
Expected behaviorThe consumer should always receive the exact message body that was published, without any corruption or truncation. Additional contextAdditional context |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 1 reply
-
Heavy load means 5000 messages (publish before consumers starts) and 10 consumers. |
Beta Was this translation helpful? Give feedback.
-
@sintesfabien Thank you for reporting the issue. Can you please create a GitHub repo to reproduce the problem? It will be easier for us to understand. |
Beta Was this translation helpful? Give feedback.
-
@sintesfabien - it is unlikely that this library is the source of this error. Think about it - this library is the second most popular AMQP 0.9.1 library for RabbitMQ (after the Java one), and if such a basic issue were the fault of this library, we would have heard about it. A much more likely explanation is your use of the library. We are willing to assist you, but only if you make it as easy as possible for us to help you. Right now, you are asking us to guess how to reproduce this issue, which is not something we will do for you. We will need the following:
|
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
@sintesfabien are you aware of the Consumer Memory Safety section in the docs?
Back when 7.0.0 has just shipped, it was a very common issue to see, and many users who claimed "message corruption" were not doing what the client expected them to do. |
Beta Was this translation helpful? Give feedback.
-
This issue is due to incorrect use of this library - #1847 (comment) |
Beta Was this translation helpful? Give feedback.
This issue is due to incorrect use of this library - #1847 (comment)