You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2023/01/04 09:30:00 UTC

[jira] [Comment Edited] (CAMEL-18760) camel-kafka - Issue using ThrottlingExceptionRoutePolicy with Kafka consumer

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

Claus Ibsen edited comment on CAMEL-18760 at 1/4/23 9:29 AM:
-------------------------------------------------------------

Can you try with 3.20.0 / 3.20.1 


was (Author: davsclaus):
Can you try with 3.21.0 / 3.21.1 

> camel-kafka - Issue using ThrottlingExceptionRoutePolicy with Kafka consumer
> ----------------------------------------------------------------------------
>
>                 Key: CAMEL-18760
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18760
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-kafka
>    Affects Versions: 3.18.3
>            Reporter: Lorenzo Benvenuti
>            Priority: Minor
>             Fix For: 3.21.0
>
>
> Hi,
> while attempting to add the circuit breaker pattern to a route (see also CAMEL-18759), I tried to use {{ThrottlingExceptionRoutePolicy}} to suspend and resume the route when a specific exception is thrown. I noticed that regardless of the {{breakOnFirstError}} setting, the message causing the circuit to be opened is lost. If {{breakOnFirstError}} is {{true}}, logs are showing "Will seek consumer to offset -1 and start polling again", but when the circuit is closed the message is not consumed. I suspect that the consumer overwrites the offset when it's suspended. If I switch to manual commits, everything works as expected.
> Reproducer here: https://github.com/lorenzobenvenuti/camel-kafka-break-on-first-error-bug
> Thanks,
> lorenzo



--
This message was sent by Atlassian Jira
(v8.20.10#820010)