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

In Java-client, backoff should be skipped for retried producer-batch to a new leader

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.7.0, 3.6.1
    • clients
    • None

    Description

      Right now in java-client, producer-batches backoff upto retry.backoff.ms(100ms by default). This Jira proposes that backoff should be skipped if client knows of a newer-leader for the partition in a sub-sequent retry(typically through refresh of parition-metadata via the Metadata RPC). This would help improve the latency of the produce-request around when partition leadership changes.

      Attachments

        Issue Links

          Activity

            People

              mayanksnarula Mayank Shekhar Narula
              mayanksnarula Mayank Shekhar Narula
              Walker Carlson Walker Carlson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: