[ 
https://issues.apache.org/jira/browse/CAMEL-18587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Otavio Rodolfo Piske resolved CAMEL-18587.
------------------------------------------
    Resolution: Fixed

Closing as they should have been fixed now.

> Kafka Consumer closes on any exception if breakOnFirstError is set to TRUE
> --------------------------------------------------------------------------
>
>                 Key: CAMEL-18587
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18587
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-kafka
>    Affects Versions: 3.18.0
>            Reporter: rupam
>            Assignee: Otavio Rodolfo Piske
>            Priority: Minor
>             Fix For: 3.18.3, 3.20.0
>
>
> In KafkaFetchRecords' startPolling method , if breakOnErrorHit is true, the 
> KafkaConsumer closes instead of pausing.
>  
> {code:java}
> while (isKafkaConsumerRunnableAndNotStopped() && isConnected() && 
> pollExceptionStrategy.canContinue()) {
> ConsumerRecords<Object, Object> allRecords = consumer.poll(pollDuration);
> if (consumerListener != null) {
> if (!consumerListener.afterConsume(consumer)) {
> continue;
> }
> }
> ProcessingResult result = 
> recordProcessorFacade.processPolledRecords(allRecords, lastResult);
> if (result.isBreakOnErrorHit()) {
> LOG.debug("We hit an error ... setting flags to force reconnect");
> // force re-connect
> setReconnect(true);
> setConnected(false);
> } else {
> lastResult = result;
> }
> updateTaskState();
> }{code}



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

Reply via email to