WIP
authorKai Moritz <kai@juplo.de>
Sat, 2 Nov 2024 21:02:13 +0000 (22:02 +0100)
committerKai Moritz <kai@juplo.de>
Sat, 9 Nov 2024 15:49:53 +0000 (16:49 +0100)
src/main/java/de/juplo/kafka/ExampleConsumer.java

index b60ec37..0fbddc8 100644 (file)
@@ -168,11 +168,6 @@ public class ExampleConsumer implements Runnable, ConsumerRebalanceListener
       consumer.close();
       log.info("{}: Consumed {} messages in total, exiting!", id, consumed);
     }
-
-    log.info("{} - Final commit for transaction", id);
-    producer.commitTransaction();
-    log.info("{} - Closing the producer", id);
-    producer.close();
   }
 
   private void commitIfNecessary()