Croway commented on PR #30694:
URL: https://github.com/apache/camel/pull/30694#issuecomment-7142957356

   Hi @vilmosnagy, a correction to my comment above: #30739 builds on your 
design (the sticky fatal error, which it moves up to `DefaultConsumer` so that 
the other consumers use it too). So please go ahead with the rebase and the 
review points, and let's land #30694 first. I'll then rebase #30739 on it and 
keep your tests.
   
   For the two points Claus raised, #30739 has one way to do them, if it helps. 
A poll that ran over a stop and start is recognised with the generation check 
of CAMEL-27385 (`ScheduledPollConsumer.run()` and `handleFatalError()`). 
Instead of rethrowing, `run()` records the error, and a later run returns at 
once because `isRunAllowed()` is false. That also covers the Spring and Quartz 
schedulers, which catch the `Error` and keep running the task.
   
   One change from what we agreed on the list: there I said that any `Error` 
should stop the consumer. #30739 stops it only for a `VirtualMachineError`. 
After another `Error` it polls again, as after an exception, because such an 
`Error` is often specific to one message (such as a class of the message that 
cannot be initialized). You don't need to change that in #30694: I'll align it 
in my rebase, and the 4.24 upgrade guide will describe the final behaviour.
   
   _Claude Code on behalf of Croway_
   


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