davsclaus commented on code in PR #29380:
URL: https://github.com/apache/camel/pull/29380#discussion_r4501172346


##########
core/camel-core-processor/src/main/java/org/apache/camel/processor/errorhandler/RedeliveryErrorHandler.java:
##########
@@ -1676,6 +1676,9 @@ protected void prepareExchangeForContinue(Exchange 
exchange, boolean isDeadLette
             exchange.getIn().removeHeader(Exchange.REDELIVERED);
             exchange.getIn().removeHeader(Exchange.REDELIVERY_COUNTER);
             exchange.getIn().removeHeader(Exchange.REDELIVERY_MAX_COUNTER);
+            // also the counter of the exchange, as when the failure is 
handled: a continued exchange is not redelivered

Review Comment:
   Right, the handled/continued path already resets the counter at 748 and 1897 
before `prepareExchangeForContinue`, so this one is defensive. Took your 
wording in de7e8a6.
   
   _Claude Code on behalf of Claus Ibsen_



-- 
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]

Reply via email to