[
https://issues.apache.org/jira/browse/CAMEL-17504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17477254#comment-17477254
]
Claus Ibsen commented on CAMEL-17504:
-------------------------------------
Do you have a real world use-case / example that is affected in a camel upgrade
or something?
> BridgeExceptionHandlerToErrorHandler broken with DefaultErrorHandler
> --------------------------------------------------------------------
>
> Key: CAMEL-17504
> URL: https://issues.apache.org/jira/browse/CAMEL-17504
> Project: Camel
> Issue Type: Bug
> Components: came-core
> Affects Versions: 3.14.0
> Reporter: Benjamin Graf
> Priority: Minor
>
> Using BridgeExceptionHandlerToErrorHandler marks new Exchange as delivery
> exhausted
> {code:java}
> exchange.adapt(ExtendedExchange.class).setRedeliveryExhausted(true);
> {code}
> [Link to
> Code|https://github.com/apache/camel/blob/80b92e3624ae5db59a1a24a441f1b10b39eaa1a5/core/camel-support/src/main/java/org/apache/camel/support/BridgeExceptionHandlerToErrorHandler.java#L70]
> but SimpleTask in RedeliveryErrorHandler must be not exhausted.
> {code:java}
> boolean failure = exchange.getException() != null
> && !ExchangeHelper.isFailureHandled(exchange)
> && !exchange.isRedeliveryExhausted();
> if (failure) {
> // previous processing cause an exception
> handleException();
> onExceptionOccurred();
> prepareExchangeAfterFailure(exchange);
> // we do not support redelivery so continue callback
> AsyncCallback cb = callback;
> taskFactory.release(this);
> reactiveExecutor.schedule(cb);
> }
> {code}
> [Link to
> Code|https://github.com/apache/camel/blob/d8999df46f5b0c4500b4a33c743a1527cd1d5cd0/core/camel-core-processor/src/main/java/org/apache/camel/processor/errorhandler/RedeliveryErrorHandler.java#L453]
> Seems to be broken somewhere after 3.7.x
--
This message was sent by Atlassian Jira
(v8.20.1#820001)