From: Kai Moritz Date: Mon, 28 Oct 2024 09:50:00 +0000 (+0100) Subject: Fix: Der Rebalance-Listener wurde nie registriertgit diff X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=e94b7370c2b8ab53dd55f06f882cd65af9e20f4e;p=demos%2Fkafka%2Ftraining Fix: Der Rebalance-Listener wurde nie registriertgit diff --- 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)