Re: [rabbitmq-users] Failed to declare anonymous(auto-delete=true, exclusive=true) queue after rabbitmq in HA mode restart

163 views
Skip to first unread message

Gary Russell

unread,
Sep 29, 2022, 11:06:23 AM9/29/22
to rabbitm...@googlegroups.com
Problem was not related to x-queue-master-locator [1].



From: rabbitm...@googlegroups.com <rabbitm...@googlegroups.com> on behalf of kbit8 <boczek.k...@gmail.com>
Sent: Tuesday, September 27, 2022 10:53 AM
To: rabbitmq-users <rabbitm...@googlegroups.com>
Subject: [rabbitmq-users] Failed to declare anonymous(auto-delete=true, exclusive=true) queue after rabbitmq in HA mode restart
 

⚠ External Email

Hi Team, 

we have rabbitmq cluster on k8s with following HA configuration:

{"ha-mode":"exactly","ha-params":2}

Spring boot application which uses spring cloud stream connects to the rabbitmq cluster using internal k8s DNS, like:

url: rabbitmq.rabbitmq

The application creates auto-delete=true, exclusive=true with additional argument  x-queue-locator-master:client-local queue, like:
Screenshot 2022-09-27 at 16.46.08.png

Issue comes when node on which given queue is declared goes down. When node goes down, application tries to declare the same queue on next node however it receives:

method: #method<channel.close>(reply-code=404, reply-text=NOT_FOUND - no queue 'destination.anonymous.xgZpSlDrRdyd3vlO7K_5nw' in vhost '/', class-id=50, method-id=10)

Can you please share whether something on queue declaration or rabbitmq configuration is missing to make it working? Expected behaviour is that application can successfully declare auto-delete=true, exclusive=true queue if previous node on which was declared went down. 
I have also posted on spring-cloud stream and was advised to ask here also https://stackoverflow.com/questions/73865296/failed-to-declare-anonymous-queue-after-rabbitmq-in-ha-mode-restart because theoretically it should work, but currently it does not because of some reason. 

Regards

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/650ab40d-11a8-4fc2-a8ca-06962853ce8fn%40googlegroups.com.


⚠ External Email: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender.

Reply all
Reply to author
Forward
0 new messages