Skip to content

Queues with x-expiry set are stored by connection recovery topology "map" (cache) #1311

Answered by michaelklishin
soer84 asked this question in Q&A
Discussion options

You must be logged in to vote

This is not a leak and neither it is a bug.

Queue TTL is applied on the server. Clients are completely unaware of this and it was never the goal for topology recovery to take queue TTL into account. Setting x-expires via an optional client argument is usually wrong, the recommended option is to use a policy.

The recovery cache is cleared when queues are deleted. Topology recovery can be disabled independently from connection (and channel) recovery on a per ConnectionFactory basis.

Since the recommended way of setting TTL is via a policy, and client libraries won't be aware of policy settings such as TTL, this is just something you have to deal with. These (potentially already expired) que…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@michaelklishin
Comment options

Answer selected by michaelklishin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1311 on May 13, 2024 15:47.