Croway opened a new pull request, #30011: URL: https://github.com/apache/camel/pull/30011
JIRA: [CAMEL-26980](https://issues.apache.org/jira/browse/CAMEL-26980) - A `throwException` step given an exception instance sets that one object on every message, and `FatalFallbackErrorHandler` / `RedeliveryErrorHandler` added the previous exception of each message to it as suppressed, so it grew with every failure for the lifetime of the route. - `ThrowExceptionProcessor` marks the configured instance on the exchange (internal property), and the error handlers no longer add suppressed exceptions to it. `throwException(type, message)` is unchanged: a new exception per message, with the previous one as suppressed. - The EIP page explains instance vs. type; the existing tests that relied on the suppressed exception of an instance now use the type form. Tests: `ThrowExceptionSharedInstanceTest` (fails on main: 3 suppressed after 3 messages). Upgrade guide: 4.24 entry "throwException with an exception instance gets no suppressed exceptions". _Claude Code on behalf of Federico Mariani_ -- 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]
