Hello all!<br>
<br>
I'm using rabbitMQ 2.6.1's mirror queue without 'x-ha-policy' (yet!), and I just found a weird situation.<br>
<br>
I'm using keepalived to exchange IP address from clients, and my queues are "Durable=True"<br>
<br>
====<br>
[root@qwar1 ~]# rabbitmqctl cluster_status<br>
Cluster status of node rabbit@qwar1 ...<br>
[{nodes,[{disc,[rabbit@qwar2,rabbit@qwar1]}]},<br>
{running_nodes,[rabbit@qwar2,rabbit@qwar1]}]<br>
...done.<br>
<br>
[root@qwar2 ~]# rabbitmqctl cluster_status<br>
Cluster status of node rabbit@qwar2 ...<br>
[{nodes,[{disc,[rabbit@qwar2,rabbit@qwar1]}]},<br>
{running_nodes,[rabbit@qwar1,rabbit@qwar2]}]<br>
...done.<br>
====<br>
<br>
All my queues are created on node _qwc1_, how you can see here:<br>
<br>
====<br>
[root@qwar1 ~]# rabbitmqctl report<br>
...<br>
Consumers on encoder:<br>
queue_name channel_pid consumer_tag ack_required<br>
videos <rabbit@qwar1.3.2926.0> amq.ctag-7FoHaypQdRWWanL5CYjXug== true<br>
sender <rabbit@qwar1.3.26415.0> amq.ctag-6YYXJJxU/LsoGFpBTn47FA== true<br>
...<br>
<br>
[root@qwar2 ~]# rabbitmqctl report<br>
...<br>
Consumers on encoder:<br>
queue_name channel_pid consumer_tag ack_required<br>
videos <rabbit@qwar1.3.2926.0> amq.ctag-7FoHaypQdRWWanL5CYjXug== true<br>
sender <rabbit@qwar1.3.26415.0> amq.ctag-6YYXJJxU/LsoGFpBTn47FA== true<br>
...<br>
====<br>
<br>
If I shutdown the _qwc2_ everything works as well.<br>
<br>
If I shutdown the _qwc1_ the cluster stop to work, and I got this errors messages on log:<br>
<br>
=ERROR REPORT==== 30-Nov-2011::16:34:36 ===<br>
connection <0.734.0>, channel 4 - error:<br>
{amqp_error,not_found,"no queue 'videos' in vhost 'encoder'",'queue.declare'}<br>
<br>
=ERROR REPORT==== 30-Nov-2011::16:34:36 ===<br>
connection <0.734.0>, channel 5 - error:<br>
{amqp_error,not_found,"no queue 'videos' in vhost 'encoder'",'queue.declare'}<br>
<br>
=ERROR REPORT==== 30-Nov-2011::16:30:26 ===<br>
connection <0.5263.0>, channel 1 - error:<br>
{amqp_error,not_found,"no queue 'sender' in vhost 'encoder'",'queue.declare'}<br>
<br>
=ERROR REPORT==== 30-Nov-2011::16:30:27 ===<br>
connection <0.5263.0>, channel 1 - error:<br>
{amqp_error,not_found,"no queue 'sender' in vhost 'encoder'",'queue.declare'}<br>
<br>
When the node qwc1 turn back to live, everything works as well.<br>
<br>
If, before the shutdown, I delete the queue 'videos' and 'sender', everything works as well.<br>
<br>
Is the behaviour correct? I thought that everything was still working as well even with a crash of one of nodes of cluster :)<br>
<br>
Thanks a lot,<br>
<br>
Tiago Cruz<br>
<br>