This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch camel-3.11.x in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.11.x by this push: new 8efc2e6 CAMEL-16857: camel-kafka - breakOnFirstError causes thread and memory leaks in camel-kafka 8efc2e6 is described below commit 8efc2e68e326746843fc935fe743adaa0d20a5f5 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Fri Sep 3 11:56:01 2021 +0200 CAMEL-16857: camel-kafka - breakOnFirstError causes thread and memory leaks in camel-kafka --- .../src/main/java/org/apache/camel/component/kafka/KafkaConsumer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaConsumer.java b/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaConsumer.java index 331ba9e..0378524 100644 --- a/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaConsumer.java +++ b/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaConsumer.java @@ -446,6 +446,7 @@ public class KafkaConsumer extends DefaultConsumer { if (breakOnErrorHit) { // force re-connect reconnect.set(true); + retry.set(false); // to close the current consumer } }