[Questions] Dead lettered message crashes QQ when upgrading from 3.13.7 to 4.0.4. #12932
-
Community Support Policy
RabbitMQ version used4.0.4 Erlang version used26.2.x Operating system (distribution) usedLinux How is RabbitMQ deployed?Debian package rabbitmq-diagnostics status outputSee https://www.rabbitmq.com/docs/cli to learn how to use rabbitmq-diagnostics
Logs from node 1 (with sensitive values edited out)See https://www.rabbitmq.com/docs/logging to learn how to collect logs
Logs from node 2 (if applicable, with sensitive values edited out)See https://www.rabbitmq.com/docs/logging to learn how to collect logs
Logs from node 3 (if applicable, with sensitive values edited out)See https://www.rabbitmq.com/docs/logging to learn how to collect logs
rabbitmq.confSee https://www.rabbitmq.com/docs/configure#config-location to learn how to find rabbitmq.conf file location
Steps to deploy RabbitMQ clusterSteps to reproduce the behavior in questionadvanced.configSee https://www.rabbitmq.com/docs/configure#config-location to learn how to find advanced.config file location
Application code# PASTE CODE HERE, BETWEEN BACKTICKS Kubernetes deployment file# Relevant parts of K8S deployment that demonstrate how RabbitMQ is deployed
# PASTE YAML HERE, BETWEEN BACKTICKS What problem are you trying to solve?We have seen several crashes related to the annotation of death lettered messages in one of our RMQ nodes, right after upgrading it from 3.13.7 to 4.0.4. We ran such upgrade at Worth to mention that despite the running version being 4.0.4, one should not go to the rabbitmq-server/deps/rabbit/src/mc.erl Line 410 in 8e9c2a7 Reson for this mismatch between the reported 4.0.4 version and the actual commit to look at described in the Discord server: https://discordapp.com/channels/1092487794984755311/1316380484812541973/1316909611370151936 The dead lettering configuration is as follows:
Errors below happen right after the upgrade.
By looking at the segment file we find a message with
I haven't been able to reproduce this issue, i.e.: causing some message with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Thank you @LoisSotoLopez for starting a discussion and the detailed report including the contents of the segment file. This issue occurs also with classic queues, not only with quorum queues. rabbitmq-server/deps/rabbit/src/mc_amqpl.erl Line 704 in 52b3843 the deaths annotation is set, but not the x-last-death-* annotations.
Repro steps:
|
Beta Was this translation helpful? Give feedback.
Thank you @LoisSotoLopez for starting a discussion and the detailed report including the contents of the segment file.
This issue occurs also with classic queues, not only with quorum queues.
This issue can happen when the deaths annotation is recovered from a message sent to RabbitMQ 3.13.7 via AMQP 0.9.1. In
rabbitmq-server/deps/rabbit/src/mc_amqpl.erl
Line 704 in 52b3843
the
deaths
annotation is set, but not thex-last-death-*
annotations.Repro steps:
x-death
header from Q2 back to Q1. (RabbitMQ 3.13.7 will interpret thisx-death
header …