Details
-
Sub-task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
The offset commit protocol supports the ability to add user metadata to commits, but this is not yet exposed in the new consumer API. The straightforward way to add it is to create a container for the offset and metadata and adjust the KafkaConsumer API accordingly.
OffsetMetadata { long offset; String metadata; } KafkaConsumer { commit(Map<TopicPartition, OffsetMetadata>) OffsetMetadata committed(TopicPartition) }