From: Kai Moritz Date: Mon, 23 Jan 2023 17:05:26 +0000 (+0100) Subject: WIP X-Git-Tag: wip~3 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=5a2936492eb0393356c87932bbb2dd14ffc51a5d;p=demos%2Fkafka%2Fchat WIP --- 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); }); }