From: Kai Moritz Date: Sun, 21 Aug 2022 15:52:23 +0000 (+0200) Subject: Log-Meldungen zu gespeichertem und wiederhergestelltem Zustand X-Git-Tag: sumup-adder---lvm-2-tage~7^2 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=bfddb34a846a27a477d97eaa4db9221afbd6dbba;p=demos%2Fkafka%2Ftraining Log-Meldungen zu gespeichertem und wiederhergestelltem Zustand --- diff --git a/src/main/java/de/juplo/kafka/ApplicationRebalanceListener.java b/src/main/java/de/juplo/kafka/ApplicationRebalanceListener.java index 6776c0d..a89c633 100644 --- a/src/main/java/de/juplo/kafka/ApplicationRebalanceListener.java +++ b/src/main/java/de/juplo/kafka/ApplicationRebalanceListener.java @@ -38,6 +38,15 @@ public class ApplicationRebalanceListener implements PollIntervalAwareConsumerRe .findById(Integer.toString(partition)) .orElse(new StateDocument(partition)); recordHandler.addPartition(partition, document.state); + for (String user : document.state.keySet()) + { + log.info( + "{} - Restored state for partition={}|user={}: {}", + id, + partition, + user, + document.state.get(user)); + } adderResults.addPartition(partition, document.results); }); } @@ -54,7 +63,7 @@ public class ApplicationRebalanceListener implements PollIntervalAwareConsumerRe for (String user : state.keySet()) { log.info( - "{} - Calculations for partition={}|user={}: {}", + "{} - Saved state for partition={}|user={}: {}", id, partition, user,