-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix: DLX doesn't update timestamp on republish (#583)
When a message was dead letter the timestamp wasn't updated. This caused TTL to misbehave if a message was dead lettered to another queue with TTL: Declare queue q1 with x-message-ttl = 100 and x-dead-letter-routing-key = q2 Declare queue q2 with x-message-ttl = 100 and x-dead-letter-routing-key = q3 Publish message to q1. After 100ms the message is dead lettered to q2 (via default exchange). Because the message timestamp isn't updated the message will expire immediately in q2 and dead lettered to q3. This will fix this by setting a new timestamp on the message when it's published by the dead lettering.
- Loading branch information
Showing
3 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters