From 44e3beabdcbf1ff7c4bd81ddde4b36e4645b6a42 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 28 Sep 2024 12:00:20 +0200 Subject: [PATCH] `metadata.maxage.ms` auf 5 Sekunden heruntergesetzt --- src/main/java/de/juplo/kafka/ExampleConsumer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/de/juplo/kafka/ExampleConsumer.java b/src/main/java/de/juplo/kafka/ExampleConsumer.java index 1715813..710f45a 100644 --- a/src/main/java/de/juplo/kafka/ExampleConsumer.java +++ b/src/main/java/de/juplo/kafka/ExampleConsumer.java @@ -33,6 +33,7 @@ public class ExampleConsumer props.put("partition.assignment.strategy", "org.apache.kafka.clients.consumer.CooperativeStickyAssignor"); props.put("key.deserializer", StringDeserializer.class.getName()); props.put("value.deserializer", StringDeserializer.class.getName()); + props.put("metadata.maxage.ms", 5000); this.id = clientId; this.topic = topic; -- 2.20.1