log.info("{} - removing partition: {}", id, partition);
this.partitions.remove(partition);
Map<String, AdderResult> 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<String, List<AdderResult>> results = adderResults.removePartition(partition);
stateRepository.save(new StateDocument(partition, state, results));