Skip to content

fix: remove failure stamps when retrying messages to prevent message loss#167

Open
bendavies wants to merge 1 commit into
zenstruck:1.xfrom
bendavies:fix/retry-failure-stamps
Open

fix: remove failure stamps when retrying messages to prevent message loss#167
bendavies wants to merge 1 commit into
zenstruck:1.xfrom
bendavies:fix/retry-failure-stamps

Conversation

@bendavies

Copy link
Copy Markdown

fixes #103 (comment)

When retrying a failed message via the UI, if it failed again after exhausting retries, the message would be lost instead of being sent back to the failure transport.

This occurred because SendFailedMessageToFailureTransportListener checks for an existing SentToFailureTransportStamp and skips sending to the failure transport if found (to avoid re-sending). Since retried messages kept their original stamps, they couldn't be sent back to failure transport on subsequent failures.

Now removes SentToFailureTransportStamp, RedeliveryStamp, and ErrorDetailsStamp before dispatching, allowing the message to be properly sent to the failure transport if it fails again.

…loss

When retrying a failed message via the UI, if it failed again after
exhausting retries, the message would be lost instead of being sent
back to the failure transport.

This occurred because SendFailedMessageToFailureTransportListener
checks for an existing SentToFailureTransportStamp and skips sending
to the failure transport if found (to avoid re-sending). Since retried
messages kept their original stamps, they couldn't be sent back to
failure transport on subsequent failures.

Now removes SentToFailureTransportStamp, RedeliveryStamp, and
ErrorDetailsStamp before dispatching, allowing the message to be
properly sent to the failure transport if it fails again.
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.

1 participant