Why there is a duplicated consumer after a connection recovery in RabbitMQ? <p>I am using:</p> <ul> <li>RabbitMQ 3.5.1</li> <li>Java RabbitMQ client</li> <li>Cluster with two RabbitMQ instances</li> </ul> <p>I have a queue that is:</p> <ul> <li>Durable=false</li> <li>Exclusive=false</li> <li>Auto-delete=true</li> <li>Queue mirroring didn't affect the results</li> </ul> <p>In my application there is an asynchronous consumer receiving the messages through a callback. The problem happens when I try to simulate a connection failure by disabling the network communication with the broker. After the connection is restablished the queue (in the web administration interface) is showing two consumers connected with the same consumer tag, but with different port numbers.</p> <p>When I stop the app one of the consumers disappears, but the other one remains connected, thus the queue is not deleted. Is this expected or I do I have to change something to avoid this?</p>