Skip to content

race condition between on_node_down and queue.declare #9804

Answered by michaelklishin
unipolar asked this question in Other
Discussion options

You must be logged in to vote

RabbitMQ 3.8 has reached EOL well over one year ago.

This is a known behavior and there is no short term solution for non-mirrored queue types.

RabbitMQ cannot know if a queue declaration is coming in the near future or not. Even if it were to delay a non-mirrored/transient queue cleanup, that would still hold after this initial delay. This is a race condition between two things that cannot be synchronized because they are initiated by two (or more) different applications on different hosts.

So there are a few options:

  • Treat non-replicated queues types for what they are: non-replicated types that offer few guarantees.
  • Use quorum queues that would not be automatically deleted like that
  • On…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by unipolar
Comment options

You must be logged in to vote
0 replies
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
2 participants
Converted from issue

This discussion was converted from issue #9804 on October 26, 2023 23:34.