From 5a2936492eb0393356c87932bbb2dd14ffc51a5d Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Mon, 23 Jan 2023 18:05:26 +0100 Subject: [PATCH] WIP --- .../chat/backend/persistence/kafka/KafkaChatHomeService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/de/juplo/kafka/chat/backend/persistence/kafka/KafkaChatHomeService.java b/src/main/java/de/juplo/kafka/chat/backend/persistence/kafka/KafkaChatHomeService.java index b344a682..4a87d310 100644 --- a/src/main/java/de/juplo/kafka/chat/backend/persistence/kafka/KafkaChatHomeService.java +++ b/src/main/java/de/juplo/kafka/chat/backend/persistence/kafka/KafkaChatHomeService.java @@ -51,6 +51,7 @@ public class KafkaChatHomeService implements ChatHomeService, ConsumerRebalanceL long unseenOffset = offsets[partition]; log.info("Reading partition {} from {} -> {}", partition, unseenOffset, currentOffset); + consumer.seek(tp, unseenOffset); }); } -- 2.20.1