From bfddb34a846a27a477d97eaa4db9221afbd6dbba Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 21 Aug 2022 17:52:23 +0200 Subject: [PATCH] Log-Meldungen zu gespeichertem und wiederhergestelltem Zustand --- .../de/juplo/kafka/ApplicationRebalanceListener.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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, -- 2.20.1