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

Add a bounded flush() API to Kafka Producer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • producer

    Description

      Currently the call to Producer.flush() can be hang there for indeterminate time.

      It is a good idea to add a bounded flush() API and timeout if producer is unable to flush all the batch records in a limited time. In this way the caller of flush() has a chance to decide what to do next instead of just wait forever.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kdu kun du
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: