From: Kai Moritz Date: Tue, 23 May 2023 19:46:05 +0000 (+0200) Subject: Gewollten Fehler im Consumer von `first-contact` korrigiert X-Git-Tag: first-contact-DEPRECATED~4 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=1b033ad5addcbc48767522f30858f129a6f3919f;p=demos%2Fkafka%2Ftraining Gewollten Fehler im Consumer von `first-contact` korrigiert --- diff --git a/src/main/java/de/juplo/kafka/SimpleConsumer.java b/src/main/java/de/juplo/kafka/SimpleConsumer.java index ca8d1db..d8f3624 100644 --- a/src/main/java/de/juplo/kafka/SimpleConsumer.java +++ b/src/main/java/de/juplo/kafka/SimpleConsumer.java @@ -79,7 +79,8 @@ public class SimpleConsumer } catch(WakeupException e) { - log.info("{} - RIIING!", id); + log.info("{} - Closing the KafkaConsumer", id); + consumer.close(); } catch(Exception e) { @@ -87,11 +88,10 @@ public class SimpleConsumer } finally { + log.info("{} - Shutting down..."); this.lock.lock(); try { - log.info("{} - Closing the KafkaConsumer", id); - consumer.close(); log.info("{} - DONE!"); stopped.signal(); }