Kafka - Consumers
Identify the error in this Kafka consumer offset commit code snippet:
consumer.commitSync(Collections.singletonMap(
new TopicPartition("topic1", 0),
new OffsetAndMetadata(5)
));