Skip to content
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

Cherry picks for v2.10.19 RC4 #5769

Merged
merged 4 commits into from
Aug 9, 2024
Merged

Conversation

neilalexander and others added 4 commits August 8, 2024 16:18
Otherwise we might add the entry into the cache and then immediately
prune it afterwards, depending on luck/map iteration order.

Signed-off-by: Neil Twigg <neil@nats.io>
The server would send the reply back to the client before removing
message from the stream, which could cause some issues if the
client expected the message to be removed after the AckSync() call
returns.
For instance, a WorkQueue that would have a max message of 1 per
subject and discard new message would fail a client that got a
message, ack it, and re-puplish this message. Depending on timing,
the client may get and error `maximum messages per subject exceeded`.

Used @pcsegal description of the problem and example code to write
a test that demonstrated the issue before the fix.

Resolves #5702

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
Signed-off-by: Neil Twigg <neil@nats.io>
…erly synched with the leader before proceeding.

Signed-off-by: Derek Collison <derek@nats.io>
@wallyqs wallyqs requested a review from a team as a code owner August 8, 2024 23:19
Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wallyqs wallyqs merged commit 0153f6a into release/v2.10.19 Aug 9, 2024
5 checks passed
@wallyqs wallyqs deleted the downstream/v2.10.19 branch August 9, 2024 00:13
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.

4 participants