rabbitmq / rabbitmq-server

Open source RabbitMQ: core server and tier 1 (built-in) plugins
https://www.rabbitmq.com/
Other
12.32k stars 3.92k forks source link

Avoid an exception when an AMQP 0-9-1-originating message with expiration set is converted for an MQTT consumer (backport #12710) #12711

Closed mergify[bot] closed 1 week ago

mergify[bot] commented 1 week ago

when an AMQP 0-9-1 publisher publishes a message that has expiration set.

Stack trace was contributed in #12707 by @rdsilio.

Originally submitted against v4.0.x as https://github.com/rabbitmq/rabbitmq-server/pull/12708.

To reproduce the exception:

  1. Start a node with rabbitmq_mqtt enabled
  2. Tail its logs
  3. Install github.com/rabbitmq/omq
  4. omq amqp-mqtt --message-ttl 10s -t /topic/my_topic -T my_topic -C 1
    This is an automatic backport of pull request #12710 done by Mergify.