Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-2387 Improve KafkaConsumer API
  3. KAFKA-2403

Expose offset commit metadata in new consumer

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.9.0.0
    • 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)
      }
      

      Attachments

        Activity

          People

            hachikuji Jason Gustafson
            hachikuji Jason Gustafson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: