You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The command rabbitmqctl list_unresponsive_queues crashes with a function clause if there is a queue of type :rabbit_mqtt_qos0_queue present. This is because rabbit_amqqueue:is_unresponsive/2 only expects the 3 known queue types (
In more general terms Im not sure what should be returned for 3rd party custom queue types. The code could either always ignore queue types which are not classic, quorum or stream. Or there needs to be an optional callback of the queue type that returns if the queue is unresponsive.
Additional context
No response
The text was updated successfully, but these errors were encountered:
michaelklishin
changed the title
list_unresponsive_queues crashes if qos0_queue present
list_unresponsive_queues crashes if a QoS 0 queue used by an MQTT client is present
Jul 3, 2024
Describe the bug
RabbitMQ 3.13.x or main at b4efe04
The command
rabbitmqctl list_unresponsive_queues
crashes with a function clause if there is a queue of type:rabbit_mqtt_qos0_queue
present. This is becauserabbit_amqqueue:is_unresponsive/2
only expects the 3 known queue types (rabbitmq-server/deps/rabbit/src/rabbit_amqqueue.erl
Line 1315 in fde9950
Reproduction steps
rabbitmq_mqtt
pluginrabbit_mqtt_qos0_queue
emqtt
clientExpected behavior
Successfully return an empty list.
In more general terms Im not sure what should be returned for 3rd party custom queue types. The code could either always ignore queue types which are not classic, quorum or stream. Or there needs to be an optional callback of the queue type that returns if the queue is unresponsive.
Additional context
No response
The text was updated successfully, but these errors were encountered: