Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-5795 Make the idempotent producer the default producer setting
  3. KAFKA-5913

Add `hasOffset` and `hasTimestamp` methods to RecordMetadata to indicate whether metadata is available

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • None
    • None

    Description

      One of the changes in KIP-192 is to send a DUPLICATE_SEQUENCE error code with a ProduceResponse when we detect a duplicate on the broker but don't have the batch metadata for the sequence in question in memory.

      To handle this on the client, we mark the batch as successful, but cannot return the offset and timestamp information in the RecordMetadata returned in the produce future. Thus we add RecordMetadata.hasOffset and RecordMetadata.hasTimestamp methods to enable applications to discover whether the broker returned valid metadata which can be used.

      Attachments

        Issue Links

          Activity

            People

              apurva Apurva Mehta
              apurva Apurva Mehta
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: