From 26965ad7040f369ac1e3d3954f3255f9ef70358b 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 119badd..2ad0a93 100644 --- a/src/main/java/de/juplo/kafka/ExampleConsumer.java +++ b/src/main/java/de/juplo/kafka/ExampleConsumer.java @@ -69,7 +69,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