[ https://issues.apache.org/jira/browse/KAFKA-2403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14660909#comment-14660909 ]
ASF GitHub Bot commented on KAFKA-2403: --------------------------------------- GitHub user hachikuji opened a pull request: https://github.com/apache/kafka/pull/119 KAFKA-2403; Add support for commit metadata in KafkaConsumer You can merge this pull request into a Git repository by running: $ git pull https://github.com/hachikuji/kafka KAFKA-2403 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/119.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #119 ---- commit 1ac0309682e170ca78495ade796b0f8957b04df9 Author: Jason Gustafson <ja...@confluent.io> Date: 2015-08-05T22:10:02Z KAFKA-2403; Add support for commit metadata in KafkaConsumer ---- > Expose offset commit metadata in new consumer > --------------------------------------------- > > Key: KAFKA-2403 > URL: https://issues.apache.org/jira/browse/KAFKA-2403 > Project: Kafka > Issue Type: Sub-task > Reporter: Jason Gustafson > Assignee: Jason Gustafson > Priority: Minor > > 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. > {code} > OffsetMetadata { > long offset; > String metadata; > } > KafkaConsumer { > commit(Map<TopicPartition, OffsetMetadata>) > OffsetMetadata committed(TopicPartition) > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)