[ 
https://issues.apache.org/jira/browse/CAMEL-27471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18150808#comment-18150808
 ] 

Federico Mariani commented on CAMEL-27471:
------------------------------------------

[~gnodet] https://github.com/apache/camel/pull/30739 (CAMEL-27515) is merged to 
main for 4.24.0 (006d56f3d4d2), and covers the consumer part of this ticket: a 
{{VirtualMachineError}} from the route or from the loop of the seda consumer 
stops the consumer, with its health check DOWN until the route is restarted, 
and another {{Error}} is handled as an exception and the loop goes on. If that 
covers what you had in mind, this ticket can be resolved with fix version 
4.24.0.

_Claude Code on behalf of Croway_

> camel-seda - a VirtualMachineError in the route ends the consumer thread, and 
> the queue is no longer consumed
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-27471
>                 URL: https://issues.apache.org/jira/browse/CAMEL-27471
>             Project: Camel
>          Issue Type: Sub-task
>          Components: camel-seda
>            Reporter: Federico Mariani
>            Assignee: Guillaume Nodet
>            Priority: Major
>
> {{SedaConsumer.run()}} catches only {{Exception}} around the processing of a 
> polled exchange. A {{VirtualMachineError}} thrown in the route, which 
> CAMEL-26741 throws on to the caller on purpose, ends the consumer thread. 
> With the default {{concurrentConsumers=1}} nothing consumes the queue any 
> more: the producers keep adding to it until it is full, and the route still 
> says Started. Only the default handler of the JVM prints the Error, on stderr.
> Reproduced on main: 5 messages sent to {{seda:in}}, the route throws a 
> {{StackOverflowError}} on the first:
> {noformat}
> processed 1 of 5, 4 left in the queue, route Started
> {noformat}
> Suggested fix: catch the Error in the loop, log it at ERROR and go on with 
> the next exchange (for a {{VirtualMachineError}}, see the proposal of the 
> parent issue).
> _Claude Code on behalf of Croway_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to