I am using:
- RabbitMQ 3.5.1
- Java RabbitMQ client
- Cluster with two RabbitMQ instances
I have a queue that is:
- Durable=false
- Exclusive=false
- Auto-delete=true
- Queue mirroring didn't affect the results
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.
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?