Skip to content

[Questions] Question about behavior of non durable classic queues #12829

Closed Answered by mkuratczyk
Rmarian asked this question in Questions
Discussion options

You must be logged in to vote

This is one of the reasons transient non-exclusive queues have been deprecated:
https://www.rabbitmq.com/blog/2021/08/21/4.0-deprecation-announcements#removal-of-transient-non-exclusive-queues

They are still allowed in 4.0 by default, but you can configure RabbitMQ to not allow them:

deprecated_features.permit.transient_nonexcl_queues = false

What you are observing is most likely a race condition. The intended order of events would be:

  1. the queue exists and everything works
  2. network partition triggers a deletion of a non-durable queue
  3. the application reconnects, redeclares a queue
  4. everything works again

However, sometimes the application redeclares the queue first and only then the nodes…

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
8 replies
@michaelklishin
Comment options

@fruetschi
Comment options

@mkuratczyk
Comment options

@fruetschi
Comment options

@mkuratczyk
Comment options

Answer selected by michaelklishin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants