Skip to content

Add test for the application of message-ttl policy retroactively #1425

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 5, 2017

Conversation

dcorbacho
Copy link
Contributor

Tests the behavior of the queues when a message-ttl policy is applied retroactively.

At the moment, if there are messages in the queue when the policy is applied, these messages aren't drained after the ttl. However, the documentation (https://www.rabbitmq.com/ttl.html#per-message-ttl-caveats) states that they are drained when they reach the head of the queue, and aren't delivered to consumers.

Expire those messages is complex, as the timestamp when they entered the queue is missing. Current behaviour could be accepted, and only a documentation update required.

@michaelklishin michaelklishin merged commit cbb34bb into master Dec 5, 2017
@lukebakken lukebakken deleted the retroactive-operator-policy branch December 6, 2017 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants