WIP
authorKai Moritz <kai@juplo.de>
Tue, 25 Jun 2024 05:03:42 +0000 (07:03 +0200)
committerKai Moritz <kai@juplo.de>
Tue, 25 Jun 2024 05:03:42 +0000 (07:03 +0200)
src/main/java/de/juplo/kafka/wordcount/stats/StatsApplicationConfiguration.java

index 8498a9e..10bdb73 100644 (file)
@@ -70,7 +70,6 @@ public class StatsApplicationConfiguration
                props.put(StreamsConfig.APPLICATION_ID_CONFIG, applicationId);
                props.put(StreamsConfig.APPLICATION_SERVER_CONFIG, applicationServer.host() + ":" + applicationServer.port());
                props.put(StreamsConfig.BOOTSTRAP_SERVERS_CONFIG, bootstrapServer);
-               props.put(StreamsConfig.DEFAULT_DESERIALIZATION_EXCEPTION_HANDLER_CLASS_CONFIG, LogAndContinueExceptionHandler.class);
 
                props.put(StreamsConfig.BOOTSTRAP_SERVERS_CONFIG, applicationProperties.getBootstrapServer());
                if (applicationProperties.getCommitInterval() != null)
@@ -87,6 +86,9 @@ public class StatsApplicationConfiguration
        {
                Properties props = new Properties();
 
+               props.put(
+                               StreamsConfig.DEFAULT_DESERIALIZATION_EXCEPTION_HANDLER_CLASS_CONFIG,
+                               LogAndContinueExceptionHandler.class);
                props.put(StreamsConfig.DEFAULT_KEY_SERDE_CLASS_CONFIG, JsonSerde.class.getName());
                props.put(StreamsConfig.DEFAULT_VALUE_SERDE_CLASS_CONFIG, JsonSerde.class.getName());
                props.put(