Kafka - Consumers
Given the following code snippet, what will be the output if the consumer seeks to offset 5 and reads one message?
consumer.assign(Collections.singleton(topicPartition)); consumer.seek(topicPartition, 5); ConsumerRecordsrecords = consumer.poll(Duration.ofMillis(1000)); for (ConsumerRecord record : records) { System.out.println(record.offset()); break; }
