Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-13967

Guarantees for producer callbacks on transaction commit should be documented

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0
    • clients
    • None

    Description

      As discussed in https://github.com/apache/kafka/pull/11780#discussion_r891835221, part of the contract for a transactional producer is that all callbacks given to the producer will have been invoked and completed (either successfully or by throwing an exception) by the time that KafkaProducer::commitTransaction returns. This should be documented so that users of the clients library can have a guarantee that they're not on the hook to do that kind of bookkeeping themselves.

      Attachments

        Issue Links

          Activity

            People

              ChrisEgerton Chris Egerton
              ChrisEgerton Chris Egerton
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: