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

CommitRequestManager should record failed request only once even if multiple errors in response

    XMLWordPrintableJSON

Details

    Description

      The commitRequestManager calls onFailedAttempt to register a failed request, and this call directly affects the count of attempts, considered to determine the backoff to apply. Therefore, this onFailedAttempts should only be called once per request, but currently the CommitRequestManager may call it multiple times for a single request (if the response contains multiple partition errors):

      We should ensure that onFailedAttempt is only called once per request, and add a test that covers both cases above, of responses with multiple partition errors in it.

      Attachments

        Issue Links

          Activity

            People

              frankvicky TengYao Chi
              lianetm Lianet Magrans
              Lianet Magrans Lianet Magrans
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: