On 6 Jul 2015 at 21:43:41, Parnell Springmeyer (
par...@plumlife.com) wrote:
> I'm using the Erlang client. I don't believe this is a problem
> with RabbitMQ per-se but it's reproducible by spawning a separate
> consumer process and then killing that process and letting the
> supervisor start it up again, I end up with multiple consumers
> with the same tag and only one of them is actually active.
>
> I think I might have to propagate the consumer failure out to the
> process responsible for the AMQP connection so that it gets restarted
> too.
There are two Erlang clients: network (works much like clients in other languages)
and direct. Are you using the direct one? Error handling in it can indeed be quite a bit
different.
The idea is that Erlang client processes need to be monitored in your code because
a dying consumer isn’t necessarily a reason to kill its channel, leave alone connection,
so the library lets the user decide.
--
MK
Staff Software Engineer, Pivotal/RabbitMQ