You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Karen Lease (Jira)" <ji...@apache.org> on 2022/06/27 17:19:00 UTC
[jira] [Commented] (CAMEL-17925) camel-kafka: "breakOnFirstError" option is not respected
[ https://issues.apache.org/jira/browse/CAMEL-17925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17559294#comment-17559294 ]
Karen Lease commented on CAMEL-17925:
-------------------------------------
A refactoring moved the handling of exceptions into the catch clause of the processor, but the error handler had already caught the exception. I have modified it to check if an exception is set on the Exchange which makes the test case contributed by [~eandre] work correctly.
> camel-kafka: "breakOnFirstError" option is not respected
> --------------------------------------------------------
>
> Key: CAMEL-17925
> URL: https://issues.apache.org/jira/browse/CAMEL-17925
> Project: Camel
> Issue Type: Bug
> Components: camel-kafka
> Affects Versions: 3.12.0, 3.14.2, 3.15.0, 3.16.0
> Reporter: Espen Andreassen
> Assignee: Karen Lease
> Priority: Minor
> Fix For: 3.18.0
>
>
> *Description:*
> Errors thrown in kafka-consumer routes with "breakOnFirstError" enabled does not trigger reprocessing in 3.12.0 and forward, as if option "breakOnFirstError" is not respected.
> *Reproduction:*
> * Configure a route consuming from kafka with option "breakOnFirstError" enabled
> * Trigger an exception in route
> *Expected result:*
> * Should break out, seek back to offset of the message that caused the failure and then reattempt to process the message (as per the [docs|[https://camel.apache.org/components/3.14.x/kafka-component.html]]: )
> *Actual result:*
> * Consumer continuous to next message
> *GitHub project reproducing the issue*
> [https://github.com/espeandr/camel-kafka-break-on-error-demo]
> Test-runs
> 3.16.0 (failing): [https://github.com/espeandr/camel-kafka-break-on-error-demo/runs/5886049034?check_suite_focus=true]
> 3.11.6 (succeeding): https://github.com/espeandr/camel-kafka-break-on-error-demo/runs/5886221956?check_suite_focus=true
--
This message was sent by Atlassian Jira
(v8.20.7#820007)