[rabbitmq-discuss] RabbitMQ 3.0 Policy ha-all delete issue

Mark Ward ward.mark at gmail.com
Tue Nov 20 16:38:07 GMT 2012


Hi,

RabbitMQ 3.0.0, Erlang R15B02 (x64) on Windows 2008 r2.  3 server "disc"
cluster.

I have been working with the Policies.  I added a ha-mode=all policy and all
queues were mirrored across the cluster.  My queues were highly active when
I added the policy.

During another round of testing with my clients attached to the cluster I
removed the policy while the queues where active.  Although I have done this
before without issues I received the following error in the Web GUI.  The
errors from RabbitMQ's log are attached.  What else is odd is that a queue
still has the policy listed and is mirrored in the cluster.  The policy no
longer exists in the Admin/Policy.  No other queue lists the policy. 

I am not sure how repeatable this is since I have added/removed the policy
before without issue.

GUI error
----------
Got response code 500 with body
Internal Server Error

The server encountered an error while processing this request:
{exit,{noproc,{gen_server2,call,[<0.28318.3>,stop_mirroring,infinity]}},
      [{gen_server2,call,3,[]},
       {rabbit_amqqueue,stop_mirroring,1,[]},
       {rabbit_policy,'-update_policies/1-lc$^3/1-3-',1,[]},
       {rabbit_policy,update_policies,1,[]},
       {rabbit_runtime_parameters,clear_any0,3,[]},
       {rabbit_runtime_parameters,clear_any,3,[]},
       {rabbit_mgmt_wm_policy,delete_resource,2,[]},
       {webmachine_resource,resource_call,3,[]}]}

rabbit.log
---------------
=ERROR REPORT==== 20-Nov-2012::10:13:50 ===
webmachine error: path="/api/policies/MoBunnyMoProblems.DCF/ha-all"
{exit,{noproc,{gen_server2,call,[<0.28318.3>,stop_mirroring,infinity]}},
      [{gen_server2,call,3,[]},
       {rabbit_amqqueue,stop_mirroring,1,[]},
       {rabbit_policy,'-update_policies/1-lc$^3/1-3-',1,[]},
       {rabbit_policy,update_policies,1,[]},
       {rabbit_runtime_parameters,clear_any0,3,[]},
       {rabbit_runtime_parameters,clear_any,3,[]},
       {rabbit_mgmt_wm_policy,delete_resource,2,[]},
       {webmachine_resource,resource_call,3,[]}]}


In an attempt to add the policy and delete it again. I got the following
error. 
Got response code 500 with body
Internal Server Error

The server encountered an error while processing this request:
{error,{exit,{{{badmatch,false},
               [{rabbit_amqqueue_process,handle_call,3,[]},
                {gen_server2,handle_msg,2,[]},
                {proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,237}]}]},
              {gen_server2,call,[<0.20496.3>,start_mirroring,infinity]}},
             [{gen_server2,call,3,[]},
              {rabbit_amqqueue,start_mirroring,1,[]},
              {rabbit_policy,'-update_policies/1-lc$^3/1-3-',1,[]},
              {rabbit_policy,update_policies,1,[]},
              {rabbit_runtime_parameters,set_any0,4,[]},
              {rabbit_runtime_parameters,set_any,4,[]},
              {rabbit_mgmt_wm_policy,'-accept_content/2-fun-0-',5,[]},
              {rabbit_mgmt_util,with_decode,5,[]}]}}


I'll see what restarting the servers will do and will just delete my queue
to continue testing.  

I will continue testing the policy changing on the fly as I am thinking it
might be helpful for server maintenance then relaxing the mirror policy for
performance.

-Mark




--
View this message in context: http://rabbitmq.1065348.n5.nabble.com/RabbitMQ-3-0-Policy-ha-all-delete-issue-tp23527.html
Sent from the RabbitMQ mailing list archive at Nabble.com.


More information about the rabbitmq-discuss mailing list