You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Lucas Brutschy (Jira)" <ji...@apache.org> on 2023/12/19 13:03:00 UTC

[jira] [Resolved] (KAFKA-15548) Send GroupConsumerHeartbeatRequest on Consumer.close()

     [ https://issues.apache.org/jira/browse/KAFKA-15548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lucas Brutschy resolved KAFKA-15548.
------------------------------------
    Resolution: Fixed

> Send GroupConsumerHeartbeatRequest on Consumer.close()
> ------------------------------------------------------
>
>                 Key: KAFKA-15548
>                 URL: https://issues.apache.org/jira/browse/KAFKA-15548
>             Project: Kafka
>          Issue Type: Sub-task
>          Components: clients, consumer
>            Reporter: Philip Nee
>            Assignee: Philip Nee
>            Priority: Major
>              Labels: consumer-threading-refactor, kip-848-client-support, kip-848-e2e, kip-848-preview
>
> 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|https://github.com/apache/kafka/pull/14406] that allows for performing network I/O on shutdown. The new method {{ConsumerNetworkThread.runAtClose()}} will be executed when {{Consumer.close()}} is invoked.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)