Fehlerhafte Commit-Logik: Immer `producer.close()`
authorKai Moritz <kai@juplo.de>
Sun, 18 Sep 2022 10:02:23 +0000 (12:02 +0200)
committerKai Moritz <kai@juplo.de>
Sun, 18 Sep 2022 10:02:23 +0000 (12:02 +0200)
src/main/java/de/juplo/kafka/EndlessConsumer.java

index 9ea944b..a7ae35b 100644 (file)
@@ -84,8 +84,6 @@ public class EndlessConsumer<K, V> implements Runnable
     {
       log.error("{} - Unexpected error: {}", id, e.toString(), e);
       this.exception = e;
-      log.info("{} - Unsubscribing...", id);
-      consumer.unsubscribe();
     }
     finally
     {