-
Notifications
You must be signed in to change notification settings - Fork 72
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
per-message TTL header name #146
Comments
I'd be willing to accept such a PR |
UPDATE: while testing the PR I saw that So my current proposal is to drop ============================
That's true. But there is already an object
Based on the RMQ docs linked above, I'd say this per-message header uses the wrong header name. It should be I'd also rename that val to As for enforcing the usage of the right type of header in the right context I'd have to give it a go and see how far I get, but I see it as an optional library improvement while fixing that line above is the actual bugfix. |
Thanks for the detailed investigative report. I think you're right, it should be |
I think there is an issue with
ModeledMessageHeaders.x-message-ttl
. I tried using it on a message and couldn't verify that the message actually got dropped from the queue. Looking at the docs (https://www.rabbitmq.com/ttl.html#per-message-ttl-in-publishers) I would say that the actual header name should beexpiration
and notx-expires
. The latter seems to be only for setting queue TTL values. I think this is not very consistent of RMQ but that's how it is.Using
expiration
(viaAMQP.BasicProperties.Builder().expiration("60000").build()
) I actually get the dropping of dead messages that I expect.I'm happy to provide a PR if you confirm my interpretation of the behaviour.
The text was updated successfully, but these errors were encountered: