[rabbitmq-discuss] Exchange disappear
andrea.rosa at hp.com
Thu Nov 24 17:24:52 GMT 2011
> -----Original Message-----
> From: Marek Majkowski [mailto:majek04 at gmail.com]
> Sent: 24 November 2011 15:00
> To: Rosa, Andrea
> Cc: rabbitmq-discuss at lists.rabbitmq.com
> Subject: Re: [rabbitmq-discuss] Exchange disappear
> >> > The exchange has auto_delete=true, so maybe a possible scenario
> >> be:
> >> > 1 try to publish a message
> >> > 2 the exchange is not yet created
> >> That is going to crash the AMQP channel, you can't publish to non-
> >> existing
> >> exchange.
> > The channel can crash for some network problems or some issues with
> the socket, isn't it?
> Or when any AMQP error occurs. Closing channels is the AMQP way
> of signalling errors.
> In case of socket/network problems you will hear connection error
> (as opposed to channel error).
> IE: "channel error" is almost always caused by application doing
> AMQP things its not supposed to do.
So in my case the "thing not allowed" is trying to publish a message using a non existing exchange.
> >> > 3 second attempt to publish a message which generates the second
> >> exception (503)
> >> > 4 the message is not published and the exchange is created.
> >> > I verified also that that exchange has not a binding.
> >> Publishing to existing exchange will always succeed, bindings
> >> make
> >> a difference.
> >> `auto-delete` exchange is deleted when last queue unbinds, is that
> >> what you're doing?
> > Yes, that's my case
> Well, in such case on `unbind` (or when queues are deleted or auto-
> the exchange will be removed and any subsequent publishes will fail
> with "channel errors".
In my case the publishing process creates an exchange on the broker, before sending/publishing a message.
Thank you so much for your help!
> Hope that helps,
More information about the rabbitmq-discuss