From e94b7370c2b8ab53dd55f06f882cd65af9e20f4e Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Mon, 28 Oct 2024 10:50:00 +0100 Subject: [PATCH] Fix: Der Rebalance-Listener wurde nie registriertgit diff --- src/main/java/de/juplo/kafka/ExampleConsumer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/juplo/kafka/ExampleConsumer.java b/src/main/java/de/juplo/kafka/ExampleConsumer.java index 89cfd0a..10fc5de 100644 --- a/src/main/java/de/juplo/kafka/ExampleConsumer.java +++ b/src/main/java/de/juplo/kafka/ExampleConsumer.java @@ -73,7 +73,7 @@ public class ExampleConsumer implements Runnable, ConsumerRebalanceListener done = new boolean[numPartitions]; log.info("{} - Subscribing to topic {}", id, topic); - consumer.subscribe(Arrays.asList(topic)); + consumer.subscribe(Arrays.asList(topic), this); running = true; while (running) -- 2.20.1