-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIXED] Multiple deliveries of messages with delivery count going bac…
…kwards. (#5305) When we fail to deliver a message, we were not checking if this was a redelivery already and would decrement o.sseq, meaning we would pick up the same message after the next redelivery and would have a delivered count of 1. This could lead to a message being delivered from the redelivery queue, but that could fail, then you would see same message twice, first with dc of 2, then 1. Now app only gets one copy with delivery count of 2. Signed-off-by: Derek Collison <derek@nats.io> --------- Signed-off-by: Tomasz Pietrek <tomasz@nats.io> Signed-off-by: Derek Collison <derek@nats.io> Co-authored-by: Tomasz Pietrek <tomasz@nats.io>
- Loading branch information
1 parent
d83920c
commit c3416ca
Showing
2 changed files
with
91 additions
and
3 deletions.
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