Skip to content

Federated MQTT topic exchange with MQTT 5.0 subscribers #13040

@ansd

Description

@ansd

Describe the bug

Federation crashes if the MQTT topic exchange (amq.topic by default) is federated and MQTT 5.0 clients subscribed. That's because bindings are sent from downstream to upstream as described in https://www.rabbitmq.com/docs/federated-exchanges#details and binding arguments containing Erlang record mqtt_subscription_opts cannot be encoded in AMQP 0.9.1.

Reproduction steps

See #13033 (comment)

Expected behavior

Federation should work.

Additional context

Exporting definitions in JSON format also omits the mqtt_subscription_opts record from the binding arguments.

One solution is to encode the MQTT subscription options as an AMQP 0.9.1 table in the binding arguments when storing the binding in the database.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions