Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Duplicate
-
2.28.0
-
None
-
None
-
None
Description
I have an MQTT client connecting to the ActiveMQ Artemis broker. The client connects with a sessionExpiryInterval of 60 seconds. Among my <address-settings> in broker.xml, I have <auto-delete-queues>true</auto-delete-queues>. When I restart the MQTT client process, I can see in the broker's logs that the disconnect message is received and, after 60 seconds, the "session state" is removed.
However, every time I restart the client, the queue count in a few addresses increases by one, and never decreases after that. Inspecting the queues, they all have a message count of 0, and all but the one corresponding to the currently-active client have a consumer count of 0. Furthermore, when inspecting the queue's attributes, they are all marked as "Auto delete: false", seemingly ignoring the setting in broker.xml.
A secondary but still important issue: I had to manually turn queue auto-deletion on, as it was explicitly disabled by default, contrary to what is claimed in the documentation (https://activemq.apache.org/components/artemis/documentation/latest/address-settings.html).
Attachments
Issue Links
- is fixed by
-
ARTEMIS-4501 Clean up MQTT subscription queues when session expires
- Closed