oldestOffsets.put(toSystemStreamPartition(topicPartition), String.valueOf(offset)); }); upcomingOffsets.put(toSystemStreamPartition(topicPartition), String.valueOf(offset)); "Empty Kafka topic partition {} with upcoming offset {}. Skipping newest offset and setting oldest offset to 0 to consume from beginning", topicPartition, offset); oldestOffsets.put(toSystemStreamPartition(topicPartition), "0"); } else { newestOffsets.put(toSystemStreamPartition(topicPartition), String.valueOf(offset - 1));
oldestOffsets.put(toSystemStreamPartition(topicPartition), String.valueOf(offset)); }); upcomingOffsets.put(toSystemStreamPartition(topicPartition), String.valueOf(offset)); "Empty Kafka topic partition {} with upcoming offset {}. Skipping newest offset and setting oldest offset to 0 to consume from beginning", topicPartition, offset); oldestOffsets.put(toSystemStreamPartition(topicPartition), "0"); } else { newestOffsets.put(toSystemStreamPartition(topicPartition), String.valueOf(offset - 1));
oldestOffsets.put(toSystemStreamPartition(topicPartition), String.valueOf(offset)); }); upcomingOffsets.put(toSystemStreamPartition(topicPartition), String.valueOf(offset)); "Empty Kafka topic partition {} with upcoming offset {}. Skipping newest offset and setting oldest offset to 0 to consume from beginning", topicPartition, offset); oldestOffsets.put(toSystemStreamPartition(topicPartition), "0"); } else { newestOffsets.put(toSystemStreamPartition(topicPartition), String.valueOf(offset - 1));