gnodet commented on PR #31170: URL: https://github.com/apache/camel/pull/31170#issuecomment-7311465218
Thanks for the thorough review! The trade-off for the `skipFailedMessage=true` / permanently-failing-attachment case is intentional. The old behaviour (key stays → mail silently blacklisted forever) was arguably wrong: the idempotent repository is meant to track *delivered* messages, not to permanently suppress ones that were never handed to the route. Using it as a "poison-message" sink is a misuse that can't be undone at runtime (short of manipulating the repo directly). The new behaviour (key removed → mail retried on every poll) makes the failure visible and recoverable: a transient fault self-heals, and even a permanent fault stays observable (repeating `DEBUG` log, potential exception surfaced to the error handler if `skipFailedMessage` is later turned off). If a user genuinely wants "skip this permanently" they should wire a dead-letter channel or a dedicated filter into the route — that's the right tool for poison-message suppression. Agreed that this is worth documenting. I'll add a note to the `skipFailedMessage` option javadoc (or the endpoint option description) in a follow-up, so users are aware that the idempotent repo will not suppress permanently-failing messages. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
