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

producer.send() should not block due to metadata not available

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      Currently producer.send() may block on metadata for up to max.block.ms. This behavior is well documented but it is a bit sub-optimal. Since we return a future we should be able to make producer.send() completely non-blocking. One idea is to simply insert the record into a global queue shared across all partitions, and let the sender thread fetch record from this queue and send to broker.

      Attachments

        Issue Links

          Activity

            People

              lindong Dong Lin
              lindong Dong Lin
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: