-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[FIXED] Don't report redeliveries for consumer with MaxDeliver 1 #6877
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
Conversation
Signed-off-by: Maurice van Veen <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
im wondering if the server can expose both numbers (currently our app interpreters 'redeliveries' as 'pending messages/acks')
The server already exposes that through |
Im not seeing it in However, it does confirm
in our case this exposes |
That is stream info, not consumer info:
|
We need to indeed use the consumer info 👍 fixed on our side also. I dont understand the difference between NumPending and NumAckPending quite yet, in our case we see:
given 2 dispatches. When we ack 1, we see:
|
@ro0NL, Let's take this discussion out of this PR and back into the issue: #6874 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
A consumer with
MaxDeliver: 1
reports non-acked messages asRedelivered Messages
, although no redeliveries have happened. The state is still preserved, otherwise unacked messages in an Interest stream can be lost if used for DLQ (#6538). But we don't report redeliveries anymore for this case.Resolves #6874
Signed-off-by: Maurice van Veen [email protected]