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

4.0.x: Avoid an exception when an AMQP 0-9-1-originating message with expiration set is converted for an MQTT consumer #12708

Closed michaelklishin closed 1 week ago

michaelklishin commented 1 week ago

Note: this is submitted directly against v4.0.x because the mc_mqtt module in main is different and an equivalent line must be located first, so there might be a separate future PR for that.

See https://github.com/rabbitmq/rabbitmq-server/discussions/12707.

Version for main: https://github.com/rabbitmq/rabbitmq-server/pull/12710.

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
ansd commented 1 week ago

Closed in favour of the Mergify backport in https://github.com/rabbitmq/rabbitmq-server/pull/12711