From: Kai Moritz Date: Sat, 20 Aug 2022 16:13:50 +0000 (+0200) Subject: Log-Meldung für durchgeführte Berechnungen bei Revoke korrigiert X-Git-Tag: sumup-adder---lvm-2-tage~7^2~2 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=14ddf90be0adbeb8ab34b516b9b158071ae491e4;p=demos%2Fkafka%2Ftraining Log-Meldung für durchgeführte Berechnungen bei Revoke korrigiert --- diff --git a/src/main/java/de/juplo/kafka/ApplicationRebalanceListener.java b/src/main/java/de/juplo/kafka/ApplicationRebalanceListener.java index 32e14e8..6776c0d 100644 --- a/src/main/java/de/juplo/kafka/ApplicationRebalanceListener.java +++ b/src/main/java/de/juplo/kafka/ApplicationRebalanceListener.java @@ -51,14 +51,14 @@ public class ApplicationRebalanceListener implements PollIntervalAwareConsumerRe log.info("{} - removing partition: {}", id, partition); this.partitions.remove(partition); Map state = recordHandler.removePartition(partition); - for (String key : state.keySet()) + for (String user : state.keySet()) { log.info( - "{} - Seen {} messages for partition={}|key={}", + "{} - Calculations for partition={}|user={}: {}", id, - state.get(key), partition, - key); + user, + state.get(user)); } Map> results = adderResults.removePartition(partition); stateRepository.save(new StateDocument(partition, state, results));