[rabbitmq-discuss] Failure during shutdown with v2.3.1

Lee Kirchhoff lee at rightscale.com
Fri Mar 11 04:03:42 GMT 2011


Hi,

I recently upgraded from RabbitMQ 1.8.1 to 2.3.1 and am running in Mac and
Ubuntu enviroments. I have a plugin that uses the amqp_client to access a
local queue. With 2.3.1 when shutting down I get the error below, which I
never encountered previously. There is no load when the shutdown is
happening.

I tried to determine the cause. It appears that it may be something of a
race in that when I insert a 500 msec delay in
amqp_channels_manger:handle_channel_down/4 I get the initial internal error
indication, but no following error report. My plugin is listed before the
amqp_client application when I do a 'rabbitmqctl status' so I it should be
the first getting a chance to shutdown and close its amqp connection, i.e.,
before the amqp_client shuts down, but I suppose applications shutdown
asynchronously.

Is this a bug or am I violating some RabbitMQ design assumption. Like I
said, it wasn't happening with 1.8.1 over the last 10 months of use.

Lee Kirchhoff


=WARNING REPORT==== 10-Mar-2011::16:19:53 ===
Connection (<0.258.0>) closing: internal error in channel (<0.263.0>):
shutdown

=INFO REPORT==== 10-Mar-2011::16:19:53 ===
stopped TCP Listener on 0.0.0.0:5672

=ERROR REPORT==== 10-Mar-2011::16:19:53 ===
** Generic server <0.258.0> terminating
** Last message in was {'$gen_cast',channels_terminated}
** When Server state == {state,amqp_direct_connection,
                         {state,'rabbit at Lee-Kirchoffs-MacBook-Pro-9',
                          {user,<<"admin">>,false,
                           rabbit_auth_backend_internal,
                           {internal_user,<<"admin">>,

<<167,250,242,115,130,251,81,144,147,129,52,74,15,
                              106,4,17,219,130,101,154>>,
                            false}},
                          <<"/right_net">>,<0.261.0>,
                          {internal_error,541,<<>>}},
                         <0.256.0>,<0.259.0>,
                         {amqp_params,<<"admin">>,<<"71a8B521">>,
                          <<"/right_net">>,"localhost",5672,
                          'rabbit at Lee-Kirchoffs-MacBook-Pro-9',0,0,0,none,
                          [#Fun<amqp_auth_mechanisms.plain.3>,
                           #Fun<amqp_auth_mechanisms.amqplain.3>],
                          []},
                         0,
                         [{<<"copyright">>,longstr,
                           <<"Copyright (C) 2007-2011 VMware, Inc.">>},
                          {<<"information">>,longstr,
                           <<"Licensed under the MPL.  See
http://www.rabbitmq.com/">>},
                          {<<"platform">>,longstr,<<"Erlang/OTP">>},
                          {<<"product">>,longstr,<<"RabbitMQ">>},
                          {<<"version">>,longstr,<<"%%VSN%%">>}],
                         #Fun<amqp_connection_sup.1.27217533>,
                         #Fun<amqp_connection_sup.2.105785818>,
                         {closing,internal_error,
                          {'connection.close',541,<<>>,0,0},
                          none}}
** Reason for termination ==
** {internal_error,541,<<>>}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110310/bb2fea91/attachment.htm>


More information about the rabbitmq-discuss mailing list