lorenzobenvenuti commented on PR #18396:
URL: https://github.com/apache/camel/pull/18396#issuecomment-3031259442

   Thanks for your feedback! As I mentioned in the Jira US, I had a few ideas 
about how to handle errors without stopping the route. I've pushed some changes 
with the second option: if the replay id is invalid, when 
`fallbackToLatestReplayId` is set then the consumer re-subscribes using 
`ReplayPreset.LATEST`; otherwise, an exception is passed to the consumer 
`ExceptionHandler` and no other action is taken. This means that the consumer 
will retry to subscribe with the same id and it will likely receive other 
errors, but if users want to stop the route they can plug a 
`BridgeExceptionHandlerToErrorHandler` and handle an `InvalidReplayIdException` 
in the route exception handler. LMK your thoughts. Meanwhile, I'll try to 
implement a couple of integration tests.
   
   Thanks,
   
   lorenzo


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