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

Failed Messages can be duplicated when attempting to retry #4797

Closed
jpalac opened this issue Feb 11, 2025 · 2 comments · Fixed by #4789
Closed

Failed Messages can be duplicated when attempting to retry #4797

jpalac opened this issue Feb 11, 2025 · 2 comments · Fixed by #4789
Labels
Milestone

Comments

@jpalac
Copy link
Contributor

jpalac commented Feb 11, 2025

Describe the bug

Symptoms

Retried messages can be processed multiple times at the originating endpoint.

Who's affected

Anyone using ServicePulse to retry messages who selects to retry the message more than once. For example, The message may be submitted for retry as a batch of related messages, and whilst that's processing, it's also resubmitted for retry as an individual message.

Root cause

BatchDocumentId being updated in the RavenDB on a subsequent retry attempt for the same messageId.

## Description

If a failed message is retried in ServicePulse and the user refreshes the page before the retry is acknowledged, or submits the message as a batch retry and then straight away as a single retry, then ServicePulse allows for the message to be retried multiple times.

Expected Behaviour

The system prevents the message from being retried if it's currently queued to be retried

Observed Behaviour

The user can retry the message in ServicePulse as part of a batch, and then whilst that's processing, immediately submit the same message for retry as an individual retry.

Backported to:

@PhilBastian
Copy link
Contributor

fixed by #4789

@jpalac
Copy link
Contributor Author

jpalac commented Feb 13, 2025

Versions 6.3.2 and 5.11.5 have been released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants