Log-Meldungen zu gespeichertem und wiederhergestelltem Zustand
authorKai Moritz <kai@juplo.de>
Sun, 21 Aug 2022 15:52:23 +0000 (17:52 +0200)
committerKai Moritz <kai@juplo.de>
Sun, 21 Aug 2022 15:54:54 +0000 (17:54 +0200)
src/main/java/de/juplo/kafka/ApplicationRebalanceListener.java

index 6776c0d..a89c633 100644 (file)
@@ -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,