rabbitmqctl cannot Force exchange queues to quorum queue #11988
-
Describe the bug#10663 Seems to have added support for a "queue-type" or "queue_type" policy to facilitate exchange federation queues using quorum queues instead of classic mirrored queues. This is good, as it helps us fully and finally migrate off of classic mirrored queues in preparation for 4.0 However, this seems to not be a workable parameter to pass via rabbitmqctl when attempting to configure this. It rejects it as "not a valid parameter". Example CLI command we are attempting:
It does this when passing both "queue_type" and "queue-type", and "x-queue-type" Is there like a "word bank" somewhere that needs to be updated to list this as a valid policy setting to set? I browsed the code but couldn't find what i was expecting to see in that vein in the rabbitmqctl code... We are running on RHEL 8.10, a 5 node cluster using the RPM installation, currently RabbitMQ 3.13.2 and 3.13.6 have been tried with the same results. Everything appears to work otherwise, and all other "parameters" passed in the above command are working as expected. If we remove the "queue-type" value, the command will succeed. Reproduction steps
Expected behaviorMy expected behavior is being able to set this new policy setting via rabbitmqctl so we can "convert" all of our exchange federation queues to be "quorum" type instead of "classic mirrored" type. Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
You are trying to apply a queue policy, but you can't set a queue type through a policy like that. #10663 added a Keep in mind that the you need to be careful during the transition: make sure you understand what will happen if you just add this parameter to your federation policy (what will happen to existing queues, messages in them, will there be a gap in what's federated when no queue exists briefly, etc). The details depend on other parameters and the exact process. Side note: you could have migrated this to quorum queues long time ago - the queue doesn't have to be declared by the federation. |
Beta Was this translation helpful? Give feedback.
You are trying to apply a queue policy, but you can't set a queue type through a policy like that.
#10663 added a
queue-type
option to the exchange federation policy:https://www.rabbitmq.com/docs/federation-reference#applying-to-federated-exchanges-only
Keep in mind that the you need to be careful during the transition: make sure you understand what will happen if you just add this parameter to your federation policy (what will happen to existing queues, messages in them, will there be a gap in what's federated when no queue exists briefly, etc). The details depend on other parameters and the exact process.
Side note: you could have migrated this to quorum queues long time ago - the queu…