"zombie" mqtt_subscription queues after node kill+restart #6279
Replies: 3 comments 5 replies
-
For MQTT
@gomoripeti can you please do the same test against current |
Beta Was this translation helpful? Give feedback.
-
On a second thought (although our issue happened with MQTT connections, and they are most probably fixed by using different queue arguments) |
Beta Was this translation helpful? Give feedback.
-
I'm going to close this discussion as it is fixed in 3.12. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Given a 3 node cluster of v3.9.23 with 10K MQTT QoS1 connections to only node1. After restarting/killing node1 there are a lot of
mqtt_subscription<clientid>qos1
queues left with entries only in therabbit_durable_queue
table, but not inrabbit_queue
table (and no associated process). These queues appear asdown
on the mgmt UI.When an MQTT client with a <clientid> tries to connect again it fails with
I believe the root cause is exactly the same as very nicely investigated in #6272, just a different aspect (in this case these are durable, auto-delete, not-replicated queues). I think the node needs to be killed, as a clean shutdown would clean up auto-delete queues when the connections are closed.
Some additional logs
node02 timeline
node01 timeline
I'm including this last error, because I think that is not triggered by a new MQTT connection, but maybe part of the recovery process on the restarted node. It tries to start a defined queue, but meanwhile node2 deletes the entry from the
rabbit_queue
table.I'm opening this new issue and added the error logs to show that maybe it's not just fast reconnecting clients that can interfere with the cleanup, and it's not enough to exclude queues that already have a replica on other nodes, because the cleanup (if takes too long) can interfere with the recovery on the same node that went down.
Beta Was this translation helpful? Give feedback.
All reactions