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

Handle retriable errors when fetching offsets in new consumer

    XMLWordPrintableJSON

Details

    Description

      The new consumer CommitRequestManager fails with a fatal KafkaException whenever it receives an unexpected error in the OffsetFetch response, even if the error is retriable. See https://github.com/apache/kafka/blob/837684a1b9b3bad244613211e90b67cf9170fb44/clients/src/main/java/org/apache/kafka/clients/consumer/internals/CommitRequestManager.java#L1009-L1011

      This was initially implemented like this to maintain the behaviour of the Classic consumer, where the ConsumerCoordinator would do the same when handling the OffsetFetchResponse. That behaviour is being updated for the legacy coordinator as part of KAFKA-17279, to retry on all retriable errors.

      We should review and update in the commitRequestManager to align with this, and retry on all retriable errors, which seems sensible when fetching offsets. 

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: