Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-14246 Update threading model for Consumer
  3. KAFKA-15548

Send GroupConsumerHeartbeatRequest on Consumer.close()

    XMLWordPrintableJSON

Details

    Description

      Upon closing of the Consumer we need to send the last GroupConsumerHeartbeatRequest with epoch = -1 to leave the group (or -2 if static member). There is a mechanism introduced in PR 14406 that allows for performing network I/O on shutdown. The new method ConsumerNetworkThread.runAtClose() will be executed when Consumer.close() is invoked.

      Attachments

        Activity

          People

            pnee Philip Nee
            pnee Philip Nee
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: