Subject: | The x-ha-policy argument ignored by queue_declare() |
Date: | Fri, 2 Mar 2012 13:19:58 -0800 |
To: | bug-Net--RabbitMQ [...] rt.cpan.org |
From: | Aran Deltac <bluefeet [...] gmail.com> |
I'm trying to declare HA queues (http://www.rabbitmq.com/ha.html) via
Net::RabbitMQ and it looks like the x-ha-policy argument is being ignored
completely. I've tried both these forms:
$mq->queue_declare($channel, $queuename, {durable=>1, auto_delete=>0,
x-ha-policy=>'all'});
And:
$mq->queue_declare($channel, $queuename, {durable=>1, auto_delete=>0}, {
x-ha-policy=>'all'});
Either way I do it it is as if I never declared x-ha-policy at all.
Is Net::RabbitMQ expected to support this, or is this a new feature?
For now, to get around this, I'm going to stop declaring the queues in the
client and just expect them to exist in RabbitMQ.
Thanks,
Aran